Open tianhaoz95 opened 3 years ago
cat /dev/.host
to see the IP of the host vm
hostname -I
to see the IP of the crostini container
curl ifconfig.co
to see the public IP
Check https://www.reddit.com/r/Crostini/comments/9s52n5/local_ip_in_crostini_is_not_the_same_as_the_one/ for original answer
Root cause explanation: The Flutter tool uses a separate port to talk to a Flutter app from the observatory. This can be specified while running a Flutter app with the flag --observatory-port. This port needs to be forwarded along with the adb port (5037 by default).
I adjusted my port forwarding script to forward port 48314 as well as port 5037, and then when running the app, I passed the flag --observatory-port=48314. This corrected the problem.
To see public ip, use
curl ifconfig.co