Ending the correct TCP/IP connection

Your iSeries 400 can have a lot of incoming TCP/IP connections coming from different machines, it can be another iSeries, a Unix machine, an NT machine or a mainframe.

When one of the machines connecting to this iSeries encounters TCP/IP problems, you cannot end the connection normally. You need to end it abnormally.

How do you do it?

First know the IP address of the remote machine that had encountered TCP/IP problems.

Then, run netstat *CNN, it will give you a list of all connections on the iSeries machine. You will see a lot of IP addresses, you can page down but you can also press F17 (shift F17 on a PC keyboard) and enter the IP address of the other machine you are having problems with, it will bring you there, and from there, you can put a 4 to end the TCP/IP connection with that machine. Be careful on doing this because you can have several connections, this should also identify the port giving you more information on what to connection to end (you can have several entries with the same IP address but they will have different port assignments). Usually the ones giving problems are stuck on a close-wait state, but I still suggest verify thrice before ending things.

This was first published in May 2001

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.