-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
how to connect to localhost Meteor app #82
Comments
Hey @jankapunkt, if you're pushing the bundle to a physical device localhost will not be accessible as localhost is only available on the same device the Meteor app is being run from. Your best bet is to locate the LAN IP address (https://en.wikipedia.org/wiki/Private_network#Private_IPv4_addresses) for your machine running Meteor and connect to that. For example: Here is a StackOverflow question on this: https://stackoverflow.com/questions/47417766/calling-locally-hosted-server-from-expo-app. They have a different route where they dynamically access the IP address of your machine. It is up to you which option you prefer. I'm removing the bug tag as I don't believe at this time that this is related to an issue with this package, however I will leave the issue open for now. Please close if you're able to solve your problem. |
Hi thank you yes that fixed it. I would add this to the documentation as a PR so others won't jump into that trap, what do you think? |
@jankapunkt absolutely agree. I'll add some more details soon but for now I've added a link to this issue in the README under Basic Usage. I'll also close this issue. |
I am using expo and I am trying to connect to a Meteor app on localhost in dev mode (
expo start
; bundle is pushed to my real android phone, no emulator)which produces the following output:
Dependencies:
Is this expected; did I do something wrong here?
The text was updated successfully, but these errors were encountered: