0

I'm trying to connect my real android device to local server. So at the beginning I connect all devices to 1 network via Wi-Fi.

Next step is copy IPv4 from ipconfig.

Now I'm entering myIpv4:8080 into browser in my android Device and I get ERR_CONNECTION_TIMED_OUT.

I forgot something ? What can be wrong ?

I should get JSON object like in PC browser.

companyn2
  • 85
  • 1
  • 9

1 Answers1

0

can you check your web server is listening on a 0.0.0.0 or just localhost? Localhost is a loop back IP for every machine. If a webserver is listening to Localhost interface, it only accepts network request from the machine it runs on. Your Android request may be ignored.

ZhijieWang
  • 443
  • 1
  • 6
  • 14