Skip to content

windows_proxy

Frank Broda edited this page Jul 21, 2020 · 3 revisions

Sometimes it is useful to proxy requests to a remote host (e.g. when developing Selenium test scripts on localhost while the application resides on some other host). Linux has rinetd for this purpose. In Windows this can be set up as well (need to run in an Administrator shell; backtick used for powershell line continuation):

netsh interface portproxy add v4tov4 `
    connectaddress=HOSTNAME.DOMAIN connectport=443 `
    listenaddress=localhost listenport=443 `
    protocol=tcp

End proxying with:

netsh interface portproxy delete v4tov4 `
    listenaddress=localhost listenport=443 
Clone this wiki locally