ruby-on-railsnetwork-programmingdnsosx-snow-leopardbonjour

Rails app accessible from LAN machine using IP address, but not Bonjour name?


I'm developing a web-based application for iOS devices and want to access it from my Home Screen (via an icon).

I'm able to see the site from an external device by going to http://10.0.1.4:3000, however when I try http://computername.local:3000, Safari fails to load the page.

I've tried visiting both addresses (without the port) where I have another web server running (on port 80 of course) and these both work perfectly fine.

As you've probably already guessed my application is in Rails and I've tried using both Webrick and 'thin' servers to see if it was the server that was at fault, but still not fixed.

Obviously I'd prefer to use the bonjour name, so that I can always access the app from any LAN, regardless of their IP ranges and other settings.

Any suggestions on ways to resolve this would be greatly appreciated.


Solution

  • Problem solved.

    I'm using Snow Leopard and disabling IPv6 was all that was required for it to work it would seem.

    Also of note, publishing the service was not required, mainly because it didn't need to be discovered.