Sounds most probable.phykell said:Post your code, I bet the 789 is "overflowing the buffer" and you're actually sending a number less than 256.
Add some error handling as well. Your code should probably raise an exception if someone tries to enter a number > 255.~J~ said:Well I hope at least one of you is right 'cos we've been scratching our heads on this one!
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.
phykell said:Add some error handling as well. Your code should probably raise an exception if someone tries to enter a number > 255.
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]
phykell said:Come on, show us your code!![]()
C:\Documents and Settings\Richard Slater>ping 192.759.255.255
Ping request could not find host 192.759.255.255. Please check the name and try
again.
:~ ping 192.759.255.255
ping: unknown host 192.759.255.255
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~J~ said:Ping 192.759.255.255
Did say in my recent post that I did this in the Command Prompt.
phykell said:The real question is, is it repeatable? If it isn't, are you sure you saw what you say you saw?![]()