...

View Full Version : Checking Ports



rfresh
06-05-2010, 05:32 PM
What's a good way to check if a given port is open or closed? Is there a tool I can use to check this on a Linux box?

Thanks

120
06-05-2010, 06:53 PM
nmap

http://nmap.org/book/man.html

Inigoesdr
06-06-2010, 09:12 PM
http://www.canyouseeme.org/
http://www.yougetsignal.com/tools/open-ports/
http://lmgtfy.com/?q=port+checker

120
06-07-2010, 01:37 AM
Ah, right, he wanted an online service - not a local test using his Linux box?

In which case my personal fav is sheilds up: http://www.grc.com/

brad211987
06-07-2010, 10:32 PM
also for a quick check on a single port:

telnet <host> <port>

If it connects, port is open, otherwise port is closed.

120
06-08-2010, 08:59 AM
If your a Linux bod, the 'nc' command is pretty nice too as in:

nc 192.168.1.1 80

Would attempt to connect to port 80. Not as verbose as Telnet, but works where people may have disabled telnet.

Example HTTP session:


nc 192.168.1.1 80 {enter}
GET / HTML/1.1 {enter}
{enter}
<OUTPUT>
HTTP/1.1 200 OK
Date: Tue, 08 Jun 2010 07:57:25 GMT
Server: Apache/2.2.9
Last-Modified: Mon, 22 Mar 2010 11:48:35 GMT
ETag: "24c88d-e48-4826246ea2ac0"
Accept-Ranges: bytes
Content-Length: 3656
Vary: Accept-Encoding
Connection: close
Content-Type: text/html
{snip}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum