Finding Local TCP/IP Ports in Use in an IBM i Environment

In an IBM i environment, you can view the port numbers currently in use on your system with one of these methods. In these examples, looking for use of local ports 8000 and 8001:
- Select from the iSeries Navigator, select > Network, then > TCP/IP Configuration, then > IPv4, then > Connections. Click on the Local Port column to
sort and scroll torange of ports.

- If you do not see local port 8000 and 8001, they are not being used or in use.
- Select from the Navigator for I (using web browser (system name or
ip :2001)), select > Network, then > TCP/IP Configuration, then > IPv4, then > Connections. Click on the Local Port column to sort and scroll torange of ports, or use filter.

- If you do not see local port 8000 and 8001, they are not being used or in use.
- Enter WRKTCPSTS on an IBM
i command line and select Option 3 (Work with TCP/IP connection status). Press F14 to sort the port numbers in numerical sequence, and Press F15 to subset Local port range (Upper value 8000, and Lower value 8001).

- Enter NETSTAT *CNN on an IBM
i command line and press Enter. Press F14 to sort the port numbers in numerical sequence, and Press F15 to subset Local port range (Upper value 8000, and Lower value 8001).

- If you see this when you subset Local port range, then they are not being used or in use.

Leave a Reply