1828681 Members
2534 Online
109984 Solutions
New Discussion

Re: services

 
Fadia Almarei
Super Advisor

services

i have a linux server (redhat 9) at which i have vncserver running on, i have the client on my windows 2000 pc , i want to ask at which port the vnc will work as my server on the dmz,and is it necessary to have this servise on the /etc/services file or i must add it by my self.
fadia.marei
4 REPLIES 4
NiCK_76
Respected Contributor

Re: services

netstat -l
just for fun
Claudio Cilloni
Honored Contributor

Re: services

vnc server listens on port 5900 + display number.

if your vnc server is the display number :1, it listens on port number 5901.

ciao
Claudio
Fred Ruffet
Honored Contributor

Re: services

/etc/services is only a kind of reference, programs like netstat or nmap look at to determine which protocol corresponds to which port. If you put foo in front of smtp port on your machine and issue a nmap to a host where smtp is running, it will tell you foo port is opened... So it is not necessary. It is just usefull, if you use standard ports on your machine, as long as you can't remember all ports.

Now, to know which port is use by vnc, and more generally by any process, you can use lsof utility. It should be installed by default on your redhat server (if it's not, install it, it is usefull). Use this command to know what files and ports are opened by a process :
lsof -p pid_number

regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Ivajlo Yanakiev
Respected Contributor

Re: services

yes services is only reference
port /name

like hostname /ip address

Generaly X services isn't that secure.
use ssh instead VNC