Trying to access to Laravel server at localhost:8000 from android phone. What I did:
- Laptop & android phone is connected to same router.
- started Laravel server at localhost at port 8000
- laptop's ip for the router i.e. 192.168.0.110
- from phone browser tried to visit 192.168.0.110:8000
If I visit 192.168.0.110 then the default page from php server loads. But when trying to connect to that port (8000 for this example) - shows error page saying:
This site can't be reached
In laptop's browser I can visit localhost:8000
What's wrong am I doing?
What to do to connect?
For more OS:: Linux Mint and firewall (ufw) is turned off.
Update Couldn't solve the issue. Using ngrok instead. ngrok creates a publicly shareable url tunnelled to your localhost:port.