Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I've configured my machine with so that I can use the ssh and vnc

but the problem is, the machine is connected to internet via dsl,. so it uses a network ip address ex ( instead of using the gateway address directly..

I know the gateway ip address (public ip).. but I can not use it to connect to my machine...

How can I do it? What should I do in order to able to use the gateway so that I can connect to ssh and vnc ?


share|improve this question
up vote 3 down vote accepted

Go to the web administration page of your gateway, and search for "port forwarding" or "virtual server": the gateway need to forward packets to a given port, say port 22, to your particular internal IP address.

I suppose you can select the service from the list, ssh should be there. Then insert the internal IP of your machine in the "Server IP address" text field.

For services not in the list you should select "Custom server", I suppose the dialog will change to let you put in the port number.

For dyndns, your gateway could have the support (see the help or doc of the gateway) or you can use some software on your host to inform dyndns of external IP changes.

share|improve this answer
Thanks, please check this : what should I add there ? by the way, the public IP is dynamic so it might change once I restart my router – DeaDSouL Jul 7 '11 at 7:55
@DeaDSouL: I updated the answer, see above. – enzotib Jul 7 '11 at 8:10

Your Answer


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.