You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
close
close
Event {
"isTrusted": false,
"message": "Failed to connect to localhost/127.0.0.1:8080",
}
at meteor/connect.js:12:2 in connectMeteor
at node_modules/react-native/Libraries/WebSocket/WebSocket.js:258:8 in _eventEmitter.addListener$argument_1
at node_modules/react-native/Libraries/vendor/emitter/_EventEmitter.js:135:10 in EventEmitter#emit
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).
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.
@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: