Checking a Port is Open

I have a VM in Japan on Oracle Cloud Infrastructure but I cannot seem to reach the target port on a resource.

I tried the following command and the port 22 seems to be open.

nc -zv [my public IP address] 22

The command give me…

Connection to [my public IP address] port 22 [tcp/ssh] succeeded!

But when I try 3128 which is the target port I want to reach, it times out. Hmm the routing may not be going well. I checked the port on the local machine and a process is listening and it is open at the OS level. nc -zv is a useful tool to check if ports are open.

Author: admin

A software engineer in greater Seattle area

Leave a Reply

Your email address will not be published. Required fields are marked *