title: Check if VPN tunnel is tunneling connections with windows command line
body: <p>I would like to check with windows command line or powershell if the openVPN tunnel on my machine is actually tunneling the connections or not (maybe due to a fault of the server). Running Windows 8.1.</p>
  
  <p>I used to check this by going on any website that tells me my ip and check whether the ip is the one of the VPN server or not.</p>
  
  <p>Now, I have a php script showing me the ip of the client on a port 8888 of the server, so that with windows firewall I block all the connections except those on port 8888 or the port of the vpn, I connect to the vpn, go on <a href="http://serverip:8888/script.php" rel="nofollow">http://serverip:8888/script.php</a> and check the ip. If the IP is the one of the vpn, then I'm connected and I can reset the firewall to the normal values, otherwise there is a problem and the connection is not being tunneled through the vpn.</p>
  
  <p>I'd like to automate this task.</p>
  
  <p>(FYI: the "block connections" and "unblock connections" on the firewall is performed via command line)</p>