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

Opening a local url for development purposes #92

Closed
NickBrooks opened this issue Jun 3, 2018 · 7 comments
Closed

Opening a local url for development purposes #92

NickBrooks opened this issue Jun 3, 2018 · 7 comments

Comments

@NickBrooks
Copy link

Normal websites are fine but opening a page on localhost isn't working. How do I get this working, does it require extra permissions?

localhost

@Kleak
Copy link
Collaborator

Kleak commented Jun 3, 2018

Duplicate #23

@zoechi
Copy link

zoechi commented Jun 3, 2018

Are you aware that localhost is the phone, not your development PC?
https://stackoverflow.com/questions/49855754/unable-to-make-calls-to-localhost-using-flutter-random-port-being-assigned-to-h/49855877#49855877 might provide some ideas.

@marcosgallardo
Copy link

marcosgallardo commented May 24, 2019

@NickBrooks did you tried using 10.0.2.2 instead of localhost?

@adammesa
Copy link

If it's just a static local file, see #349

@charafau
Copy link
Collaborator

localhost doesn't work because server is not running on your phone, but on your computer, use your computer ip, instead of localhost. closing.

@zoha-shobbar
Copy link

i have same issu,

@NickBrooks did you tried using 10.0.2.2 instead of localhost?

i did it but it not work

@marcosgallardo
Copy link

i have same issu,

@NickBrooks did you tried using 10.0.2.2 instead of localhost?

i did it but it not work

This only applies if you are you using an Emulator. On a physical device, this needs to be connected to the same network than the computer and use the computers IP (See charafau comment)

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

7 participants