image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old March 14th, 2004, 03:45 PM
StarBuck's Avatar
Tech
 
Join Date: Sep 2000
Location: United Kingdom
Posts: 241
Thanks: 0
Thanked 0 Times in 0 Posts
StarBuck is on a distinguished road
Using the Terminal to ping a port number?

Hi,

Is it possible to ping a port number in the terminal?

Thanks
Reply With Quote
  #2  
Old March 14th, 2004, 04:33 PM
Me
 
Join Date: Mar 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
bob@bomar.us is on a distinguished road
You can telnet to a specific port on a remote host to test that it responds:

[bob@freebird] ~> telnet dakota 25
Trying 192.168.1.10...
Connected to dakota.
Escape character is '^]'.
220 dakota.bomar.us ESMTP Postfix
^]
telnet> quit
Connection closed.
Reply With Quote
  #3  
Old March 14th, 2004, 04:40 PM
StarBuck's Avatar
Tech
 
Join Date: Sep 2000
Location: United Kingdom
Posts: 241
Thanks: 0
Thanked 0 Times in 0 Posts
StarBuck is on a distinguished road
I use Telnet at the moment

To get around this I have been using telnet, you can do it in windows ok so you must be able to do it in OS X.
Reply With Quote
  #4  
Old March 14th, 2004, 04:40 PM
Giaguara's Avatar
Chmod 760
 
Join Date: Nov 2002
Location: ~
Posts: 7,759
Thanks: 2
Thanked 23 Times in 23 Posts
Giaguara is a jewel in the roughGiaguara is a jewel in the roughGiaguara is a jewel in the rough
You can as well use Nrtwork Utility. It is in Applications / Utilities folder.
__________________
MacBook Pro + Mac mini | Newton 2000 | @Work : Dell D620 & 2x20" + a lot of Macs | Workstation, VC & Fusion
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do.
~ Samuel Clemens | Rants | Photos
Reply With Quote
  #5  
Old March 14th, 2004, 04:48 PM
Me
 
Join Date: Mar 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
bob@bomar.us is on a distinguished road
Ping uses ICMP Packets, first type 8, ECHO, then the response, type 0, ECHO_REPLY, these packets are datagrams, and therefor can not attach to ports since they act on layer 1 and 2, but do not go up to layer 3 or above, so they will stay in the NIC and not go into the TCP/IP Stack in the kernel.

IIRC, when you do a ping in Windows, and specify a port, its an actual TCP packet, and not an ICMP packet.

You have to remember, OS X is very standards compliant, more than other OS's, therefor, the "features" in other OS's might not work, but what does work, works as per the RFC/standards that define them.

Last edited by bob@bomar.us; March 14th, 2004 at 04:49 PM. Reason: Typo
Reply With Quote
  #6  
Old March 14th, 2004, 10:03 PM
scruffy's Avatar
Notorious Olive Counter
 
Join Date: Dec 2000
Location: Soviet Canuckistan
Posts: 1,726
Thanks: 0
Thanked 0 Times in 0 Posts
scruffy is on a distinguished road
you need nmap.

http://www.insecure.org/nmap for the latest version. Fink has a very outdated version also.
__________________

What is the robbing of a bank compared to the founding of a bank?
-- Bertold Brecht
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 09:22 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.