Detect port forwarding automatically and use it for winrm