require 'socket' def is_port_open?(ip, port) begin TCPSocket.new(ip, port) rescue Errno::ECONNREFUSED return false end return true end It works great if the port is open, but the downside of this is that occasionally it will just sit and wait for 10-20 seconds and then eventually time out, throwing a ETIMEOUT exception (if the port is closed).

Aug 11, 2019 Check If a Remote Network Port Is Open Using Command Line Feb 13, 2019 How do I determine if a port is open on a Windows server

I have problems to access especifs links in some compters, but several computers can access and all go to internet by the same conection. I need know how I can view what ports are openwith SCW in Server 2003 I can see this, but I don't know in Windows 7, Vista or XP.

Jul 17, 2020 How to List Open Ports in Firewalld – Linux Hint

For example, the HTTP server runs on port 80, the MySQL database server runs on port 3306 and so on. To talk to specific service on your server computer, let’s say the HTTP server, the client computer has to pass the port 80 along with the IP address 10.0.1.11. So port 80 is an open port because a client computer can talk to it.

Learn how to see which process or application is using a particular port, and likewise, which port is being used by a particular process on a Windows OS.