Ubuntu – Change default port for remote desktop sharing 12.04 LTS

12.04networkingport-forwardingremote desktop

Basically I want to be able to access different computers remotely (all on Ubuntu 12.04 LTS) that are on the same wireless network. I've gotten this to work for one computer by forwarding port 5900 on my router, so I was thinking I could use forward port 5901 for my second computer. The problem is that I need to change the port that the second computer is listening on for remote desktop sharing (change default 5900 to 5901). Any ideas on how to do this? I am new to Ubuntu btw. Thanks.

Best Answer

Actually you can port-forward the external port 5901 into the internal port 5900 > IP: x and external port 5902 into the internal port 5900 > IP: y, and so on.

It is much simpler because you must only configure one thing -- your router -- and you won't have to remember different TCP ports when you want to reach the various PCs from inside your LAN.

Related Question