Analysis
Aug 21, 20084 mins
Data CenterLinuxNetworking
Credit: Gorodenkoff / Shutterstock
Since I’m seldom in control of all the devices between myself and whatever system I am trying to reach, I often like to verify whether I will be able to connect to a particular port on the particular system before I concern myself with whether my connection is behaving as it should. For example, I can use a command such as “telnet remhost 9999” and then try to determine if the response I am getting is the one I was expecting. If I have appropriate access to both systems, however, I can start a process on the particular port I want to reach and then run a test to see whether I can reach that process from the other system.
A little expertise with socket I/O can come in very handy for this kind of testing. You can get by, however, with …