HanClinto Administrator Posts: 1828 From: Indiana Registered: 10-11-2004 |
Well I'm thankful to finally have found an answer to my problems. For a good part of the day yesterday, I couldn't figure out why I could send packets to my program from within my computer, but as soon as I tried to send packets to my computer from an external device, I got an ICMP error Destination unreachable (Port unreachable). It was really annoying, because I was following the minimalistic example from the Ruby docs extremely closely. Long story short, I was using when I should have been using Apparently, when you use nil, it doesn't officially bind the socket to that address, but if a packet happens to come by for that port, it will grab it. Really annoying. Anyways, just wanted to chronicle the solution that I found, in case by happenstance some other Googler is running into the same issue. --clint |
MastaLlama Member Posts: 671 From: Houston, TX USA Registered: 08-10-2005 |
usually when you have ICMP errors you're supposed to fix 'em with ICBMs! |
SSquared Member Posts: 654 From: Pacific Northwest Registered: 03-22-2005 |
Aaaah, the sweet smell of success. It's always fun narrowing down on those frustrating little guys. It's not fun going through it, though. Such a small code change makes a HUGE difference. Congratulations on figuring it out. |
CPUFreak91 Member Posts: 2337 From: Registered: 02-01-2005 |
quote: Indeed. Problems like this are one of the main reasons I enjoy programming. Interesting that nil doesn't work in this situation. I shall keep that in mind for the future. ------------------ "Oh, bother," said the Borg. "We've assimilated Pooh." "Socialism works great... if there are no people involved." -- Pastor David Ginter, Union Church of Guatemala. |
Jari Member Posts: 1471 From: Helsinki, Finland Registered: 03-11-2005 |
quote: It slows down working on new APIs when the functions don't report incorrect usage. Often when using incorrect arguments you just get the "unknown" error code. ------------------ [VoHW] (Help needed) [Blog] (Contact) - Truedisciple (mp3) |