Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I test an outbound connection to an IP address as well as a specific port?

Tags:

ip

OK, we all know how to use PING to test connectivity to an IP address. What I need to do is something similar but test if my outbound request to a given IP Address as well as a specif port (in the present case 1775) is successful. The test should be performed preferably from the command prompt.

like image 229
David Avatar asked May 19 '11 18:05

David


2 Answers

Here is a small site I made allowing to test any outgoing port. The server listens on all TCP ports available.

http://portquiz.net

telnet portquiz.net XXXX
like image 124
Marc MAURICE Avatar answered Oct 22 '22 02:10

Marc MAURICE


If there is a server running on the target IP/port, you could use Telnet. Any response other than "can't connect" would indicate that you were able to connect.

like image 27
James Avatar answered Oct 22 '22 03:10

James