tianhaoz95 / pylon

Foundation of my dev machines 💎💎💎
https://tianhaoz.com/pylon/
MIT License
0 stars 0 forks source link

Add notes for chromebook #11

Open tianhaoz95 opened 3 years ago

tianhaoz95 commented 3 years ago

To see public ip, use curl ifconfig.co

tianhaoz95 commented 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

tianhaoz95 commented 3 years ago

Check https://www.reddit.com/r/Crostini/comments/9s52n5/local_ip_in_crostini_is_not_the_same_as_the_one/ for original answer

tianhaoz95 commented 3 years ago

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.

from https://github.com/flutter/flutter/issues/11441