Operating System - HP-UX
1834250 Members
2092 Online
110066 Solutions
New Discussion

limitis when I open a socket with port 66002

 
SOLVED
Go to solution
Ana Lizcano
Occasional Contributor

limitis when I open a socket with port 66002

Hi,
my problem is the following:
I has a B200 with Unix 11. When I open a socket with socket port 66002, the output is :"bad number 66002".
At first I thought that the port was listenning. But I execute the command
netstat -an | grep 66002 and anyone was listenning.
There are a limit in the number of socket? 66002 pass that limit? where can I see the limits in my machine?
Regards and thanks.
Ana.
2 REPLIES 2
Ron Kinner
Honored Contributor

Re: limitis when I open a socket with port 66002

There is a limit. It's around 64K where the K is the binary 1024 instead of 1000. Believe you can see the tcp maximum port in NDD. ndd -h will show you all the supported and unsupported values. Don't have an HP here at home but I think once you figure out which one you want to look at you can see the minimum and maximum values that are allowed with something like:

ndd -h /dev/tcp tcp-.....

check man ndd for exact format.

Ron
Steven Gillard_2
Honored Contributor
Solution

Re: limitis when I open a socket with port 66002

Yep, a TCP port is a 16 bit number so the range is 0 - 65535. Obviously 66002 is outside that range so it cannot be used.

Regards,
Steve