Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

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

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

add comment

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.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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