Skip to content

Instantly share code, notes, and snippets.

@Fallenstedt
Last active January 18, 2018 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fallenstedt/4dc950ece4ff43626bf1ca711713724e to your computer and use it in GitHub Desktop.
Save Fallenstedt/4dc950ece4ff43626bf1ca711713724e to your computer and use it in GitHub Desktop.
bridge ports from a VM to root
netsh interface portproxy add v4tov4 listenport=8001 listenaddress=127.0.0.1 connectport=8001 connectaddress=10.0.2.2
# Change listenport and connectport to the port you desire
Working on a mac and need to test on IE 11 or Edge with a local dev build? Get a VM for the browser you need from developer.microsoft.com
Then open command prompt as admin and pase the code above with the port you need. As an example I may have a local sever on port 3000 on mac.
I need my VM to see this port. I replace connectport and listen port with 3000 and paste this magical line into command prompt to build
the bridge I need.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment