开发者

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

开发者 https://www.devze.com 2023-02-16 04:26 出处:网络
I\'m developing a web-based application for iOS devices and want to access it from my Home Screen (via an icon).

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 perfectl开发者_开发问答y 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.


Are you advertising a _http._tcp service on port 3000? Check out the mdns command line utility or Network Beacon.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消