Andrew WC Brown
Andrew WC Brown

Reputation: 2260

Can't view Rails app on Windows7 via mac local address

My app runs on localhost:3000 on my mac My mac has its own local address eee.local

Other computers in the office, including other windows machines can connect to eee.local:3000 and use the the rails app.

However we had once case where one person's windows7 machine could not connect. I brought a brand new windows7 machine for IE testing purposes and it doesn't connect either.

I tried turning of the firewall and that doesn't work. I tried using the ip instead eg. 192.160.0.3:3000 but that doesn't work.

I'm not really sure how else to check, or search for this problem Anything Im overlooking?

Upvotes: 0

Views: 223

Answers (3)

nioq
nioq

Reputation: 3215

Another thing to try is to install iTunes. Sounds silly at first but installing iTunes gives your Windows machine Bonjour service discovery (enabled by default on Macs and Ubuntu desktops) which would let you resolve .local addresses.

Accessing via the IP really should have worked but if you've already turned off firewalls and the machines are on the same network then enabling Bonjour (by installing iTunes) is worth a shot.

Upvotes: 3

Dean
Dean

Reputation: 8998

You need to tell the web server to listen on all interfaces like so:

./script/server 0.0.0.0:3000

Upvotes: 0

bcardarella
bcardarella

Reputation: 4745

Is the other Windows machine on a different subnet? That could cause the issue.

Upvotes: 0

Related Questions