Last active
January 18, 2018 22:07
-
-
Save Fallenstedt/4dc950ece4ff43626bf1ca711713724e to your computer and use it in GitHub Desktop.
bridge ports from a VM to root
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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