Open ar4development opened 3 years ago
@ar4development See if this issue helps. #868
Have you started simulation (from web interface) that enables API access? Simulator listens on API port only when simulation with API mode enabled is running.
@EricBoiseLGSVL no that one is a different issue. That issue describes the case when 8181
port is listened and listed with netstat
. In my case I do not have that port listening so that no matter which IP address I'm using.
@martins-mozeiko yes that helped. Thank you! Is there a way to enable API right on start up without manual actions in Web UI?
You cannot enable API simulation right on start up. But you can use same command as website does - send simulator to start API simulation. Check the network inspector in chrome of firefox to see what JSON request it sends to port 8080 to do that. This is really "undocumented" thing and probably will change in next versions. Maybe @EricBoiseLGSVL can give you more information on what is planned next to simplify this.
@ar4development Yes, @martins-mozeiko is correct, we only support WebUI access but you can make changes to the source. We have plans to make CL/CI pipeline better is future releases.
Simulator version: 2020.06 OS: Ubuntu 20.04 Config:
OBSERVED: After the simulator has started, I'm doing
netstat -tulpn
and there I can see that the process is listening on port8080
and it also holds UDP port9999
. However port8181
is not listed there. So everything is working but the API. No issues with trying to obtain8181
port found neither in syslog nor in ufw log. EXPECTED: Port8181
is also listened by the simulatorLog: