Operating System - HP-UX
1753510 Members
5631 Online
108795 Solutions
New Discussion

Re: Port Listening 6000 and 6001

 
robert4604
Occasional Contributor

Port Listening 6000 and 6001

Im new to HPUX so you will forgive my ignorance. Here it goes, I am tryimg to open port listening on port 600 and 6001 for some software that we are installing. Using the "netstat -na | grep -i listen" command I cannot see port 6000 or 6001. I also tried "nstat -an | find 6000" No good either. What command/s do I use to manually activate these ports? Im runnig Version B 11.31

Thanks for any suggstions.

2 REPLIES 2
Steven Schweda
Honored Contributor

Re: Port Listening 6000 and 6001

> [...] I am tryimg to open port listening on port 600 and 6001 for some
> software that we are installing.

   Which "some software"?  Port 6000 (and its higher neighbors) are
normally used for/by the X Windows server.

> [...] Using the "netstat -na | grep -i listen" command I cannot see
> port 6000 or 6001.

   Apparently, you're not running the X server.  Is that what you want
to do?  Around here, for example, where it is running:

dyi# uname -a
HP-UX dyi B.11.31 U ia64 4235313755 unlimited-user license

dyi#   netstat -an | grep LISTEN | grep '.60'
tcp        0      0  *.6000                 *.*                     LISTEN

dyi# ps -ef | grep dt
    root  1764     1  0 14:30:27 ?         0:00 /sbin/sh /usr/dt/bin/dtrc
    root  1851  1838  0 14:30:51 ?         0:00 dtgreet -display dyi.antinode.info:0
    root  1838  1813  0 14:30:39 ?         0:00 /usr/dt/bin/dtlogin
    root  1813  1764  0 14:30:32 ?         0:00 /usr/dt/bin/dtlogin
  daemon  1828  1813  0 14:30:36 ?         0:01 /usr/bin/X11/X :0 -auth /var/dt/dyi.aAAA001813


   This stuff has worked since I installed HP-UX, and it's been years
since I did that, so I don't remember (if I ever knew) how to start it
if it's not running.  If the X software has been installed, then you
should get some basic information from:

      man X

   I'd expect the usual HP-UX documentation to cover this stuff, too.

   If you want to "open port listening on port 600 and 6001 for some"
_other_ "software", then you might start again with a clear explanation
of exactly what you're trying to do.  "Opening a port" is not a
fundamental operation.  Running a server of some kind is.

Patrick Wallek
Honored Contributor

Re: Port Listening 6000 and 6001

You as a sysadmin cannot just open a particular port for use.  Opening a port in and of itself would accomplish absolutely nothing.  An open port without some program behind it listening for a connect does you no good.

A program or daemon opens a port and then listens for other programs or computers requesting a connection via that particular port number.  The program then does whatever it is designed to do.

If you have a program running that is supposed to be listening on a port and the port isn't open then you may have a defective program.