Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Ping a TCP Port

Ping a TCP Port

Ping a TCP Port

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


A+,Network +,CCNA

RE: Ping a TCP Port

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 25 would telnet to the SMTP port.

'When all else fails.......read the manual'

RE: Ping a TCP Port

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

    -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.

RE: Ping a TCP Port

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.

RE: Ping a TCP Port

thanks guys...........just cant seem to work out why ports are closed

even though I opened them in the access list!

A+,Network +

RE: Ping a TCP Port

have you tried telnetting to the port?

'When all else fails.......read the manual'

RE: Ping a TCP Port

yes it says it cant connect, but the port is open..

A+,Network +

RE: Ping a TCP Port

Is there a firewall blocking it somewhere?

'When all else fails.......read the manual'

RE: Ping a TCP Port

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.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close