Post Reply 
VNC Ports
07-03-2012, 01:16 AM
Post: #1
Question VNC Ports
How do you open Ports 5800/5900 and 5500 in order to use UltraVNC?
User Tools
Quote this message in a reply


07-03-2012, 02:02 AM
Post: #2
RE: VNC Ports
Use the following commands on your VPS:

Open port 5500:
iptables -A INPUT -p tcp --dport 5500 -j ACCEPT

Open port 5800:
iptables -A INPUT -p tcp --dport 5800 -j ACCEPT

Open port 5900:
iptables -A INPUT -p tcp --dport 5900 -j ACCEPT


After that save the rules with:
/etc/init.d/iptables save

Restart iptables to accept the new rule:
/etc/init.d/iptables restart

The port should be open, if not you maybe need to open them with the udp protocol instead of tcp. Change -p tcp to -p udp in the commands.
User Tools
Quote this message in a reply
07-03-2012, 03:21 AM
Post: #3
RE: VNC Ports
don't you need to open more ports for vnc?
User Tools
Quote this message in a reply
07-03-2012, 07:34 AM (This post was last modified: 07-03-2012 07:34 AM by f8ll.)
Post: #4
RE: VNC Ports
Depends on your server and config. You can get away with just opening 1 port if you want.
User Tools
Quote this message in a reply
07-03-2012, 01:07 PM
Post: #5
RE: VNC Ports
By the way, I'd suggest using FreeNX instead.
It runs on your SSH port, so you don't have to open another port. Also, it's quite a bit faster (from my experiences).
User Tools
Quote this message in a reply
07-04-2012, 08:10 AM
Post: #6
RE: VNC Ports
its also secure, if you can about that.
User Tools
Quote this message in a reply
07-07-2012, 01:09 AM (This post was last modified: 07-07-2012 01:22 AM by waliddz.)
Post: #7
RE: VNC Ports
thank you for your help
I use NO-IP but same problem because my ISP close this Ports

I use VNC Viewer but when I try to connect to my VPS
Vnc Viewer show this message " connect:Connection refused (10061) "
Please Help me I am Beginner in the Linux world
User Tools
Quote this message in a reply
07-07-2012, 05:37 AM
Post: #8
RE: VNC Ports
Did you open up the port in your windows firewall or any other firewalls on your computer? Also are you sure you are using ports 5801/5900 and not 5901 or something?
User Tools
Quote this message in a reply
07-07-2012, 06:07 AM
Post: #9
RE: VNC Ports
I use Windows XP I desactivated Firewall
About Ports I don't know I not sure
User Tools
Quote this message in a reply
07-07-2012, 06:17 AM
Post: #10
RE: VNC Ports
Try port 5901. You can check by running "netstat -an | grep vnc" on your sever
User Tools
Quote this message in a reply
Post Reply 


Forum Jump:



User(s) browsing this thread:
1 Guest(s)