AS/400 TCP/IP ports

Date:Archived
Product/Release:LANSA for Web, TCP/IP
Abstract:Some LANSA for Web connection problems may be related to the inappropriate use of TCP/IP Ports
Submitted By:LANSA Technical Support

Description:

Firstly, extracts from the AS/400e series' TCP/IP Configuration and Reference Guide (Version 4):

1.13.1 TCP and UDP Ports

A port is an integer value from 1 to 65535 that is used to identify a TCP/IP application. TCP and UDP protocols use ports to identify a unique
origin or destination of communication with an application. There are two unique sets of ports. One set is for TCP processing, and the other is for UDP processing. They are completely independent sets of ports and have no relationship to one another.

1.13.1.1 Well-known Ports

Commonly used protocols and applications, such as FTP and SMTP, have assigned port numbers. These assigned port numbers are called well-known ports. TCP and UDP port numbers 1 to 1023 are reserved for the well-known ports and should not be used by user application programs. If the user specifies one of these ports, it can affect the operation of those applications. Refer to RFC 1700, entitled, Assigned Numbers, for a list of well-known ports.

To see the list of ports currently defined on AS/400, perform the following steps:

  1. Use the Configure TCP/IP (CFGTCP) command to get to the Configure
    TCP/IP menu
  2. Select option 21 (Configure related tables)
  3. Select option 1 (Work with service table entries)

To display the ports currently in use on the AS/400, issue the NETSTAT command and select option 3 (Work with TCP/IP connection status). This will display a screen similar that the one that follows:

Remote AddressRemote PortLocal PortIdle TimeState
**ftp-con >008:59:23Listen
**telnet000:34:09Listen
**smtp008:56:15Listen
**89008:57:54Listen
**92008:57:22Listen
**www-http008:57:00Listen
**99008:57:36Listen
**netbios >008:59:14Listen
**netbios >000:00:32*UDP
**netbios >000:00:00*UDP
**netbios >004:29:14Listen
**APPCove >008:59:39*UDP
**4547001:12:32Listen
**4548003:42:35Listen
**as-tran >006:33:14Listen
**as-vrtp >006:33:21Listen
**www-http000:10:07Listen
137.76.21.101825www-http000:01:33Time-wait
137.76.21.101831www-http000:01:30Time-wait
137.76.21.101832www-http000:01:29Time-wait
137.76.21.101833www-http000:01:29Time-wait
137.76.21.101834www-http000:01:29Time-wait
137.76.21.101835www-http000:01:29Time-wait
137.76.21.101836www-http000:01:29Time-wait
137.76.21.101837www-http000:01:29Time-wait
137.76.21.101838www-http000:01:29Time-wait
137.76.21.1610284547004:48:14Established

One Port can be used by several applications of the same protocol (e.g. http, ftp, udp, smtp, etc). In addition, the AS/400 (e.g. V4R3) provides a facility to restrict the use of the TCP/IP Ports to specific User Profiles (e.g. ADDTCPPORT).

In practice, the standard definition of Port numbers are not widely applied. However, it is expected that an increasing number of applications would be restricting the use of Ports to specific User Profiles.

Regarding LANSA for the Web, one system can use several Ports. However, one Port can only be used by one LANSA for the Web system.

Be aware of the above points when configuring and troubleshooting LANSA for the Web systems. They could explain some communication problems.

Back to Top