Add support for loopback redirect on windows

TODO: on linux use rinetd