Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhoneGap desktop server is running, but cannot access on other devices or computers

Need some help here before I pull my hair out. I just installed the latest desktop app and mobile app today. I have the PhoneGap desktop app running on OSX and the server is started on port 3000. It works fine. If I go to 192.168.0.5:3000 I get the "Hello World" app. If I go to 127.0.0.1:3000 I get the "Hello World" app. Doing a port scan says that port 3000 is open. On my iPhone 6, using the PhoneGap app it tries connecting, but eventually gives an error. In Safari I try going to 192.168.0.5:3000 and it just eventually says "Safari could not open the page..."

I have Little Snitch running, but the network filter is turned off. The OSX firewall is not running. The firewall on my router is off. What the hell is going on?

like image 999
Gavin Avatar asked Aug 05 '16 13:08

Gavin


Video Answer


2 Answers

Try going into Airplane mode, but turn on WiFi.

like image 72
TomSwift Avatar answered Oct 19 '22 02:10

TomSwift


Well after reading this i am sure something is not write with your network though you have turn off your firewall. to make sure this firewall is blocking try to test with https://ngrok.com/ tool

Here is the guide for you can use it https://ngrok.com/docs#expose

ngrok http 3000

then try it on your phone. If every thing goes write then just enable firewall and rule for your port.

like image 2
Somnath Sarode Avatar answered Oct 19 '22 04:10

Somnath Sarode