Closed rafaelcorreiapoli closed 8 years ago
Make sure your development machine and phone are on the same network and find the local IP of your dev machine and put that IP in place of 'localhost'. The localhost:3000 is accessible only from the same machine on which the meteor server is running.
Use ifconfig/ipconfig depending on your environment to find your local IP.
@kaoskeya Thanks for your help!
@rafaelcorreiapoli Did this work for you? The target localhost
probably only works if you're running the app on the emulator. What do you use, emulator or real device?
Hello! I was running on emulator, so i thought that emulator would treat localhost as my ubuntu, but I forgot that the emulator is an operating system itself, so localhost for the emulator is the android OS =P It worked with my Local network ip address (192.168...) Thanks!
Hello! I set up a simple meteor server on localhost It's fine when accessing via browser: http://localhost:3000
I tried to connect from my android client and the connection is refused mMeteor = new Meteor(getApplicationContext(), "ws://localhost:3000/websocket");
I tried to connect to android-ddp-meteor.meteor.com and it worked just fine, so I think that the problem is with my server, is there any permissions i should there to allow android clients to connect?