Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to share my desktop with the integrated tool Desktop Sharing
Is there ports to forward on the router, and which ones ?

share|improve this question

2 Answers 2

up vote 4 down vote accepted

On Ubuntu 11.10, I turned on the 'Desktop Sharing' application that comes with the OS and found that these ports are opened on my computer:

5800/tcp open  vnc-http
5900/tcp open  vnc

They seem to be just the VNC ports.

If you want to verify this for yourself, download this tool from the repository called nmap:

sudo apt-get install nmap

When you install that and have the 'Desktop Sharing' on, run this command in your terminal:

sudo nmap localhost

By default, this will show you all the TCP based ports that are opened. If you don't see any ports open, you might want to look at your local firewall by doing the following command:

sudo iptables -L --line-numbers

This will only list what rules are currently being used on your system.

I hope this gets you on the right track.

share|improve this answer

This is drawing on my memory from about 10 years ago so may be wrong? I seem to recall it's port 22.

share|improve this answer
1  
That would be by default the SSH protocol. Not VNC. The default one for VNC is 5500, 5800, 5900 and well around those numbers. Here is more info: en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers –  Luis Alvarado Feb 27 '12 at 16:11

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.