Re: Ping.pingecho



john maclean wrote:
Cisco.com don't normally allow pings so tracroutes and pings won't get
echo requests.


irb(main):003:0> Ping.pingecho('cisco.com', 10, 80)
=> true

How come this works and `ping` does not? From irb I see that Ruby's
ping uses a TCP echo. Also I've run tcpdump whilst running ping.echo
and could not determine the port that it uses. What port does Ruby's
Ping use?

check out:

http://www.noobkit.com/show/ruby/ruby/standard-library/ping/pingecho.html

According to this the 'echo' port.

grep'ing 'echo' in my /etc/services reveals this is port 7...apparently.
(UDP and TCP).



--
Posted via http://www.ruby-forum.com/.

.



Relevant Pages

  • Re: ssh on ping port?
    ... Ping absolutely *does* use a port. ... Ping is a program which sends ICMP ECHO ...
    (alt.linux)
  • Re: UDP Port 7 - trying to understand
    ... TCP and UDP echo is extremely rare - most systems to not have the client ... The "ping" you are used to is the ICMP Type 8 packet, ... Doesn't look any more of a problem than the average port scan. ... to the broadcast address of a network using UDP on port 7...you could ...
    (comp.security.misc)
  • Help getting 8752 serial port working
    ... I'm trying to communicate with a Intel 8752 micro controller via serial ... port. ... Is there a way to "ping" or have it echo my input? ...
    (sci.electronics)
  • Re: Unable to connect to newsgroups
    ... Can you ping news.microsoft.com or 207.46.248.16? ... they may have disabled the echo. ... I can telnet to either name or IP address ... | Is port 119 closed outbound on your firewall/router? ...
    (microsoft.public.win2000.general)
  • Re: ask for sample ping source code without IP protocal stack
    ... > a ping echo program based on the ethernet driver, ... > and ICMP header are correct, but Windows ping can not receive my echo. ...
    (comp.arch.embedded)