4

I generated empty backbone application from backbone-generator on my OS X 10.9.1. Then changed the connect hostname in Gruntfile.js to '0.0.0.0' and start the app.

The issue is that I cannot access the application from Android connected to the same home wifi network. I know that my local machine ip is 192.168.1.101. So, I typed in a mobile browser 192.168.1.101:9000 but nothing is loaded.

I have found several similar questions on SO:

But the answers did not help me and I cannot comment on them because of my low reputation.

Could anybody help with this issue and say what I'm missing?

2
  • did you consider turning off the firewall and shut down any anti virus in your PC? Commented Dec 25, 2013 at 12:51
  • the firewall is turned off and I have no antivirus Commented Dec 25, 2013 at 13:36

2 Answers 2

3

It turned out that the issue reason was in the router wifi settings. The "WDS Settings" was disabled and to let devices communicate over network it should be enabled.

Sign up to request clarification or add additional context in comments.

Comments

0

Questions that you reported deal with a local http server running on Android, in your case the application is running on your local machine, so it is necessary that your local machine and Android phone have IP addresses in the same subnet.

If you need to assign an IP_ADDRESS to your local machine (wi-fi interface), you can run in the Terminal

sudo ipconfig set en1 INFORM IP_ADDRESS

it may be useful for development purpose.

3 Comments

My local machine and android has 192.168.1.101/24 and 192.168.1.102/24 ips respectively. So, they are in the same subnet.
ok, sorry, but before I couldn't comment on your question. Have you already tried to connect from another device? Running lsof -Pan -i tcp -i udp, could you check whether your server process is effectively listening on all interfaces there should be "TCP *:9000 (LISTEN)"? According to the gruntfile.js it should be ok, but it is better to check it also. Moreover, you should check if in the Mac Firewall there is a rule that lets node.js to accept incoming connection. macinstruct.com/node/165
The hosting configuration is correct. I can access the site when both my computer and phone in a corporate wireless network (10.10.2.0/24). But in my home local network I cannot do this. So, I think it may be a router issue

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.