LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-14-2005, 06:05 AM   #1
osio
Member
 
Registered: Jun 2005
Posts: 70

Rep: Reputation: 15
vnc port 5900 stubbornly closed


I try to run VNC to and from two boxes in the same LAN.
The port 5900 remains closed!
I thought it was a problem of the firewall or selinux but I get the port closed even with them flushed or disabled.
At the server
service vncserver status
Xvnc (pid 2386) is running...
From the client
vncviewer -FullScreen -FullColor [server IP address]
VNC Viewer Free Edition 4.1.1 for X - built Aug 4 2005 06:43:41
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Wed Dec 14 11:46:36 2005
main: unable to connect to host: Connection refused (111)
nmap -sT -p 5900 -PT [server IP address]
Starting nmap 3.93 ( http://www.insecure.org/nmap/ ) at 2005-12-14 11:37 GMT
Interesting ports on [server IP address]:
PORT STATE SERVICE
5900/tcp closed vnc
MAC Address: [server MAC address] (Hostnet)
Nmap finished: 1 IP address (1 host up) scanned in 0.268 seconds
Back to the server:
$ netstat -l |grep 5900
It returns anything.
There is no entry for 'vnc' or '5900' at /etc/services
# nmap -sT -p 5900 -PT 127.0.0.1 (or the server's lan address)
to get the same:
5900/tcp closed vnc
Why can't I have the vncviewer cleared?
Thanks!

Osio
vnc-4.1.1.-10.1
vnc-server-4.1.1.-10.1
kernel 2.6.11.1-1.1369_FC4

Last edited by osio; 12-14-2005 at 06:09 AM.
 
Old 12-14-2005, 02:15 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Read; http://fedoranews.org/tchung/vnc/index.shtml

Then try something like; vncviewer [the server ip_address]:2
 
Old 12-15-2005, 06:36 PM   #3
osio
Member
 
Registered: Jun 2005
Posts: 70

Original Poster
Rep: Reputation: 15
vnc - which port

The manual mentions port 5901 instead of 5900.
Quote:
UPDATE:
To connect to a remote system with firewall, port 5901 needs to be open.
Add following line in red to open port 5901 and restart iptables service.
I'll have to test that.
Osio
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accidently closed Windows Manager in VNC Rufus330Ci Linux - Networking 3 04-26-2005 09:01 PM
IPTABLES allowing port 5900 when it shouldnt proendo Slackware 5 04-18-2005 09:42 AM
Open port 5900 or 59 for VNC jamiguel77 Linux - Security 5 01-08-2005 03:04 AM
port closed hotrodowner Linux - Networking 2 12-02-2002 05:06 AM
firewall.rc.config says :"open port 8080" but nmap says port is closed saavik Linux - Security 2 02-14-2002 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration