Pinging to 'crazy' IP address

~J~

~J~

Soldato
Joined
20 Oct 2003
Posts
7,558
Location
London
Writing a program to test the validity of an IP address, and as a totally random number, I've put in...

192.789.255.255

And got a response!!!


Anyone have any explanation as to why, only thing I can think of is IP6.
 
Nope, can guarantee (and can provide a trace when I get back tomorrow), that I get a response.

Ends up coming from a company called, and I'm been serious, "Giraffe Factory Housing" or something.

The actual ping-back is NOT from 192.789.255.255, but from a different IP, but I'm still surprised that it's been accepted.
 
Well I hope at least one of you is right 'cos we've been scratching our heads on this one! :D

Will post the trace tomorrow, I know the trace bounced off everywhere, and the "overflowing the buffer" sounds right, but I'm just surprised that the command prompt didn't give an immediate error with the second octet been out of range.

O well, I'm sure you'll be able to explain the trace tomorrow for me.
 
~J~ said:
Well I hope at least one of you is right 'cos we've been scratching our heads on this one! :D

Will post the trace tomorrow, I know the trace bounced off everywhere, and the "overflowing the buffer" sounds right, but I'm just surprised that the command prompt didn't give an immediate error with the second octet been out of range.

O well, I'm sure you'll be able to explain the trace tomorrow for me.
Add some error handling as well. Your code should probably raise an exception if someone tries to enter a number > 255.
 
phykell said:
Add some error handling as well. Your code should probably raise an exception if someone tries to enter a number > 255.

O that's all sorted. I was just testing a dummy IP address and by chance entered the 192 (as you do!), a random number, and thought "Well nowt is gonna have 255.255" so I entered that!

I think the common response is correct, that the overflow is kicking in, but like I said, I'm just surprised the Ping in command prompt didn't give an error.
 
3 46 ms 21 ms 18 ms btdhg549-hg2.ealing.broadband.bt.net [217.41.151.201]
4 19 ms 19 ms 19 ms 217.41.151.130
5 19 ms 20 ms 20 ms 217.41.151.234
6 21 ms 21 ms 22 ms 217.47.219.2
7 23 ms 21 ms 20 ms 217.41.168.25
8 22 ms 22 ms 19 ms 217.41.168.66
9 45 ms 21 ms 23 ms 217.41.168.142
10 21 ms 21 ms 21 ms 212.140.233.38
11 21 ms 19 ms 21 ms 217.47.155.82
12 21 ms 19 ms 36 ms core1-pos3-2.ealing.ukcore.bt.net [62.6.200.1]
13 20 ms 37 ms 46 ms core1-pos1-0-0.telehouse.ukcore.bt.net [194.74.65.113]
14 35 ms 19 ms 20 ms linx.gw-backbone-a.lon.schlund.net [195.66.224.98]
15 36 ms 36 ms 36 ms so-7000.gw-backbone-a.bs.ka.schlund.net [212.227.120.0]
16 41 ms 36 ms 36 ms a0kac2.gw-distp-a.bs.ka.schlund.net [212.227.121.210]
17 36 ms 36 ms 41 ms gw-prtr-r8-a.bs.ka.schlund.net [195.20.247.153]
18 37 ms 36 ms 36 ms p15194955.pureserver.info [217.160.209.55]
 
~J~ said:
Ping 192.759.255.255 :confused:

Did say in my recent post that I did this in the Command Prompt.
I'm sorry, I completely misunderstood you then but you said that you were writing a program to test the validity of an IP address and you certainly *didn't* say you entered it into the command prompt specifically. I thought you meant you'd put the IP address into your program :D

I have no idea why a Windows command prompt version of ping would work on such an IP address assuming it was a Windows command prompt version. I've written my own ping program in the distant past, in C, and one of the things I checked for was that the octets were valid.
 
Windows XP SP2.

Trying from my machine, I get the error I'd expect, " Ping request could not find host 192.759.255.255. Please check the name and try again."

Bottom line is it's not that important, I can test with a PC that I know is off, I'm just confused overall as to why I get a response.

The 2 lines I've omitted are 1) Our domain, and 2) our router. Other than that, what you see is what I got.
 
phykell said:
The real question is, is it repeatable? If it isn't, are you sure you saw what you say you saw? ;)

LOL - you wanna come to the office :D

Yeah it's repeatable, 100%. Can't get it on my machine at home, unless I VPN into work, and then I can ping it. Each and every machine in the office (on the domain) can ping to it too.

I'll create a movie as proof!! :p
 
If your getting a reply from a different ip there may be something wrong in your program, replies should come from the ip you send them to or its not an aweful lot of use
 
Back
Top Bottom