Connection Verification between Servers

When we are involved in a large scale deployment to production, there is a need to check whether the connectivity between servers available.

For example:
When deploying applications in different servers there is a need for communication between them using specific ports. So when a developer requests server he will provide the ports information to get opened.

After the hardware is provided there is a need to check whether the ports opened properly, without deploying the applications, to verify whether they are enabled properly.

To verify follow the below steps.

1) Consider that you need to check whether the port 9909 is opened at <remote_ip> from <source_ip>

python -m SimpleHTTPServer <port>

sl-ajanthan@slajanthan-Latitude-3580:~$ python -m SimpleHTTPServer 9909
Serving HTTP on 0.0.0.0 port 9909 …

2) Then execute the below to verify

nc -vz <remote_ip> <port>

sl-ajanthan@slajanthan-Latitude-3580:~$ nc -vz localhost 9909
Connection to localhost 9909 port [tcp/*] succeeded!
sl-ajanthan@slajanthan-Latitude-3580:~$

That’s it. Hope this helps…

Senior Tech Lead — Enterprise Integration | WSO2 Certified Solution Architect | https://ajanthane.blogspot.com/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store