TCP port 70000 on AIX 6.1? (Surely higher than allowed maximum?)


 
Thread Tools Search this Thread
Operating Systems AIX TCP port 70000 on AIX 6.1? (Surely higher than allowed maximum?)
# 1  
Old 05-29-2009
TCP port 70000 in /etc/services on AIX 6.1? (Surely higher than allowed maximum?)

Looking at /etc/services on AIX 6.1, I noticed some bizarre port numbers which exceed the 16-bit maximum port number for TCP (i.e. they are higher than 65535.)

sco_printer 70000/tcp sco_spooler # For System V print IPC
sco_s5_port 70001/tcp lpNet_s5_port # For future use


The file appears to be the original. That is, no other application has changed it:
# lppchk -c bos.net.tcp.client

This is the OS version:
# oslevel -r
6100-02

Is this a bug, since it seems meaningless to have these entries?

Last edited by garethr; 05-29-2009 at 07:41 AM.. Reason: Clarify title.
# 2  
Old 05-29-2009
the comment "For future use" may stand for both defined services

same under aix5.3
# 3  
Old 05-29-2009
There are no obvious and known limitations by default.


/etc/services is read via getservent > line by line > first match wins
There may a line lenth limit but I have used port 80000 be for for some things
# 4  
Old 05-29-2009
Okay. I have an answer:

The OS simply takes the bottom 16 bits of the port number and connects to that. So, for comparison, I can telnet to the ssh port (22), by connecting to port 65536+22 = 65558. I.e. the 2^16 bit (65536) gets masked off.

root@hostname:/ >telnet localhost 65558
Trying...
Connected to loopback.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.0

Protocol mismatch.
Connection closed.


I tried this on another port too. Also, the same behaviour on Linux. So, presumably connecting to port 70000/tcp is really the same as connecting to 70000-65536 = 4464/tcp.
# 5  
Old 05-30-2009
Quote:
Originally Posted by garethr
The OS simply takes the bottom 16 bits of the port number and connects to that. So, for comparison, I can telnet to the ssh port (22), by connecting to port 65536+22 = 65558. I.e. the 2^16 bit (65536) gets masked off.
Anybody knows what's the reason of that? I don't see any.
# 6  
Old 05-30-2009
Interesting, I have never thought about it.

(2^16) + 80 = 65616

Code:
https://www.unix.com:65616

The UNIX and Linux Forums - Learn UNIX and Linux from Experts

-----Post Update-----

Quote:
Originally Posted by borek
Anybody knows what's the reason of that? I don't see any.
Because port numbers are 16 bit integers, a long standing Internet standard.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

Tcp ip port open but no such process (merged: Release A Port)

i want to kill a tcp connection by killing its pid with netstat -an i got the tcp ip connection on port 5914 but when i type ps -a or ps-e there is not such process running on port 5914 is it possible that because i do not log on with proper user account i can not see that process running? (30 Replies)
Discussion started by: alinamadchian
30 Replies

2. AIX

TCP/UDP port range for default AIX NFS?

May I know what is the TCP/UCP port range for any default AIX NFS? Based on rpcinfo -p, I got the following output: program vers proto port service 100000 4 udp 111 portmapper 100000 3 udp 111 portmapper 100000 2 udp 111 portmapper 100000 4 ... (4 Replies)
Discussion started by: famasutika
4 Replies

3. Programming

Getting TCP Port status through C API

Does anyone know if there is a C API call to get the status of a TCP port? As opposed to running netstat and parsing the results. At the moment I have to attempt to bind() and pick up on the address in use error which isn't very elegant Thanks ---------- Post updated at 10:42 AM ----------... (0 Replies)
Discussion started by: janra
0 Replies

4. Shell Programming and Scripting

TCP port assignment

I have multiple processes running the same program on my linux machine. For each process I want to be able to use a unique (available) TCP port. I have thought of using netstat to check which ports are available for use however, the time-window between checking and selecting might expose some race... (1 Reply)
Discussion started by: timmylita
1 Replies

5. AIX

activating volume group on system after higher level aix installation

Hi, if I do install aix 5.3 on the rootvg of an aix 4.3.3 system (having rootvg and data1vg), is it possible to varyonvg the data1vg after the installation ? (any caution ?) (1 Reply)
Discussion started by: astjen
1 Replies

6. UNIX for Dummies Questions & Answers

close tcp port

Hello, I have a service running (ODBC) and every now and then it will hang and I will have to stop and restart the service. The problem is when I stop the service, it indeed stops the service, but netstat reports a tcp port still open with the fin_wait_2 status. Then I must close the client... (1 Reply)
Discussion started by: raidzero
1 Replies

7. UNIX for Advanced & Expert Users

RHEL 4, simltaneous maximum ftp/telnet sessions allowed

Hi Users, Kindly help me with below query of mine. Using Red Hat Linux Enterprise Edition as the client how many simultaneous 1) Maximum FTP sessions are allowed 2) Maximum Telnet sessions are allowed 3) any special settings need to be enabled for maximum telnet and ftp sessions on... (2 Replies)
Discussion started by: newbie07
2 Replies

8. Red Hat

RHEL 4, simltaneous maximum ftp/telnet sessions allowed

Hi Users, Kindly help me with below query of mine. Using Red Hat Linux Enterprise Edition as the client how many simultaneous 1) Maximum FTP sessions are allowed 2) Maximum Telnet sessions are allowed 3) any special settings need to be enabled for maximum telnet and ftp sessions on... (2 Replies)
Discussion started by: newbie07
2 Replies

9. UNIX for Dummies Questions & Answers

Maximum number of users allowed

How do i determen (what command) the max. number of users allowed Thanks in advance (10 Replies)
Discussion started by: siza
10 Replies

10. IP Networking

tcp problem with port

I am trying to connect via DBACCESS and Informix server to a server on a different computer. When I execute the connect command from dbaccess I get the following message, Exec format error cannot bind a name to the port. As far as I know the port is not being used by another client. How... (1 Reply)
Discussion started by: lopez
1 Replies
Login or Register to Ask a Question