Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ping a TCP Port

Status
Not open for further replies.

TheSponge

Technical User
Jul 2, 2003
442
GB
sounds strange, but how do I ping a TCP port on our works router?

I have opened up some ports in my access-list, but its not letting traffic through,

so I want to ping the port...to test

Thankyou

A+,Network +,CCNA
 
As far as I know ping cannot be used to test a port, it just tests if the actual node is live.

For this sort of test you should use telnet to verify that the port is open.

eg. telnet 192.168.1.1 25 would telnet to the SMTP port.

'When all else fails.......read the manual'
 
The following is PING under windows:-

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] destination-list

Options:
-t Ping the specified host until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
-a Resolve addresses to hostnames.
-n count Number of echo requests to send.
-l size Send buffer size.
-f Set Don't Fragment flag in packet.
-i TTL Time To Live.
-v TOS Type Of Service.
-r count Record route for count hops.
-s count Timestamp for count hops.
-j host-list Loose source route along host-list.
-k host-list Strict source route along host-list.
-w timeout Timeout in milliseconds to wait for each reply.

In Linux/Unix I dont know.
 
You can't ping a port as ping and TCP operate at different layers.

You could however download a port scanner and scan for the port in question - that would seem to achieve the thing you're looking for.

Port scanners are two a penny so just Goggle for port scanner and you'll be spoilt for choice.
 
thanks guys...........just cant seem to work out why ports are closed

even though I opened them in the access list!

A+,Network +
 
have you tried telnetting to the port?

'When all else fails.......read the manual'
 
yes it says it cant connect, but the port is open..

A+,Network +
 
Is there a firewall blocking it somewhere?

'When all else fails.......read the manual'
 
Perhaps you find the SuperScan tool from Foundstone usefull.
then on the navigation bar, select Resources.
In the Resources Overview, select Free Tools.
Scroll down and click on the section header Scanning Tools.

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top