Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't access the webpage on my laptop connected to my android server through mobile hotspot #556

Closed
Haider8 opened this issue Aug 30, 2019 · 4 comments

Comments

@Haider8
Copy link

Haider8 commented Aug 30, 2019

I have created the android server on my mobile phone and on the same phone I have opened my hotspot. Upon connecting my laptop to my mobile hotspot I can't access that webpage by my mobile's ip address. Please help me how I can do that?

Note: Right now I can only access the webpage on my mobile's localhost.

@simple565
Copy link

I have the same problem,have you fixed it?

@AndreasGabel
Copy link

AndreasGabel commented Sep 12, 2019

Same here, with SimpleWebServer implementation only localhost seems to work, but no access through IP address (e.g. in browser), even on the same device. ERR_CONNECTION_REFUSED error is shown in browser and says "[IP address] refused to connect.". Is this a result of having no CORS settings set (cors = null) or should it work anyway?

Edit: cors set to "http://192.168.43.151" (host device ip address) does not make a difference.

@Haider8
Copy link
Author

Haider8 commented Sep 12, 2019 via email

@AndreasGabel
Copy link

You are right, I just figured it out as well: setting 0.0.0.0 or null as hostname works fine. Thank you anyway.

@Haider8 Haider8 closed this as completed Sep 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants