Closed jankapunkt closed 2 years ago
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: ws://192.168.1.123:8080/websocket
(that IP address is completely made up, you'll need to find the correct one for your machine).
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?