Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .