The following command will allow me to view Google.com on localhost:9999

ssh user@mywebsite -R localhost:9999:www.google.com:80

but the following command will not allow me to view Google.com on 127.1.1.1:9999.

ssh user@mywebsite -R 127.1.1.1:9999:www.google.com:80

So my question is:

It it a problem with my arguments, os, network?

link|improve this question
feedback

migrated from stackoverflow.com Oct 4 '11 at 3:21

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 2 down vote accepted

By default, 127.0.0.1 is routed to localhost and not 127.1.1.1. To use 127.1.1.1, you need to add the following line to /etc/hosts:

127.1.1.1 localhost

127.0.0.0 - 127.255.255.255 are all reserved for localhost loopbacks but only 127.0.0.1 is configured by default on most Unix systems.

link|improve this answer
Thank you for your help. – Quintin Oct 2 '11 at 4:03
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.