bfayers / microbit-vagrants

MIT License
2 stars 1 forks source link

Allow "pxt serve" to be accessed via host browser. #13

Open OwenBrotherwood opened 7 years ago

bfayers commented 7 years ago

Workaround: replace

cd ~vagrant/pxt/pxt;
npm install; 

with

cd ~vagrant/pxt/pxt/cli;
sed -i -- 's/127.0.0.1/0.0.0.0/g' server.ts; #Workaround to bind to 0.0.0.0 instead of 127.0.0.1 so can be accessed via host browser.
cd ~vagrant/pxt/pxt;
npm install;

This is a WORKAROUND not a FIX, a fix will come in the form of working out the NAT.