ApolloAuto / apollo

An open autonomous driving platform
Apache License 2.0
25.25k stars 9.72k forks source link

[aem] How to use aem start while mapping port #15496

Closed Tumb1eweed closed 3 months ago

Tumb1eweed commented 3 months ago

Apollo version:9.0 My workspace is WSL2, and I run application-core by using aem, so I need to map port 8888 to 8888 in order to get dreamviewer to work, I don't know how to achieve that using aem...

daohu527 commented 3 months ago

Could pls use below method and have a try

Directly Access WSL's IP Address

  1. Get WSL's IP Address: You can obtain the IP address of WSL by running the following command in WSL:

    ip addr | grep eth0

    Or more specifically:

    ip addr show eth0 | grep inet

    You will get an output like inet 172.24.187.2/20, where 172.24.187.2 is the IP address of WSL.

  2. Access in Windows: Open a web browser or any network tool on Windows and access http://<WSL_IP>:8888, for example, http://172.24.187.2:8888.