knowgoio / knowgo-vehicle-simulator

An interactive multi-platform Connected Car simulator for generating and streaming realistic vehicle telemetry.
https://knowgoio.github.io/knowgo-vehicle-simulator/docs
MIT License
33 stars 7 forks source link

Cannot access the REST api on Android #6

Closed omarzia88 closed 2 years ago

omarzia88 commented 2 years ago

I have installed the simulator on an android phone, But when I am trying to access it from my laptop using my phone's IP , I cannot access it, Can you help me figure this thing out.?Should I use port 8086 while accessing the android version?

pmundt commented 2 years ago

Yes, this is the correct port to use on Android. It works ok for me in the simulator, but I will try it on a real device and see if I can reproduce. It's possible there is a permission inconsistency between the debug and release builds.

omarzia88 commented 2 years ago

Thanks, Please update the release builds if you can figure out the problem

pmundt commented 2 years ago

Ok, I finally had a chance to follow this up. The problem turned out to be that binding to localhost on Android doesn't expose the port on the other interfaces, so I have now changed this to bind by default to all network interfaces (this can still be overridden for people who do not want this behaviour). I'll push this out to git now, and will make a new release to the app store in the coming days.