-
Notifications
You must be signed in to change notification settings - Fork 342
Auto discover host IP address #472
Comments
I will have to check this out. Thanks for the tip!! |
PS -- Read this this morning, pretty cool. Congrats: http://www.theengineer.co.uk/electronics/in-depth/home-help-towards-the-automated-home/1015721.article |
Technically one is supposed to use a valid external IP address, but I discovered that as long as it is not all zeros or the loop back yields the correct result |
Thanks. I wasn't looking for fame, but if I can make some coin I'll take it. So far it hasn't been very lucrative. PS I put you in for a 2013 Ruby Hero Award. Let me know if you get a call from Matz. |
This might not work 100% of the time, because it doesn't account for boxes that might have more than one interface, and I'm not sure exactly how it decides which one is correct. However, I think that anyone with a network complicated enough for it to matter will recognize if it's wrong and override with the correct address. This should work for 90%+ of cases and will provide an excellent default option. I'll code it up this evening if I have time. |
I have been working on a plugin with service (aka Bonjour) auto discovery. I have a few bugs to work out, but resolving the hostname to an IP address works. Or is it possible to have siriproxy, maybe using UPnP, to report to a basic router DNS the hostname/ip resolution? |
Is it possible to use a custom host in siri proxy like http://youtubeproxy.co/ ? |
That is a question not related to the subject of this thread. But based on the link you provided I think you have a misunderstanding what SiriProxy is used for. It is not a generic proxy server to allow you to circumvent blocked sites by your employer or your ISP. It is to add functionality to Siri which is not available natively. |
Instead of requiring one to manually specify the server IP address you can use UDPSocket to determine the IP address.
require 'socket'
addr = UDPSocket.open {|s| s.connect("255.255.255.0", 1); s.addr.last}
The text was updated successfully, but these errors were encountered: