Skip to content

Instantly share code, notes, and snippets.

@iamsunny
Last active June 25, 2019 05:42
Show Gist options
  • Save iamsunny/c6b8ba9c44a9b9e9deef6e34d7ced2b4 to your computer and use it in GitHub Desktop.
Save iamsunny/c6b8ba9c44a9b9e9deef6e34d7ced2b4 to your computer and use it in GitHub Desktop.
Debug Custom Domain on Localhost (Windows)
netsh interface portproxy add v4tov4 listenport=80 listenaddress=127.65.43.21 connectport=31661 connectaddress=127.0.0.1
netsh interface portproxy show v4tov4
netsh interface portproxy delete v4tov4 listenport=80 listenaddress=127.65.43.21
// append hosts file
127.65.43.21 <the domain name you want to debug>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment