Force SSH Client to Use IPv4 Only
Error while using port forwarding on SSH : Cannot assign requested address
You can force the use of IPv4 on the commandline with the -4
switch:
ssh -4 -L 8080:127.0.0.1:80 dev.local
References
https://www.electricmonk.nl/log/2014/09/24/ssh-port-forwarding-bind-cannot-assign-requested-address/
https://www.putorius.net/force-ssh-client-to-use-ipv4-or-ipv6.html