Summary: How to bind the windows hostname of the machine to the regular LAN-Adapter. For some reason after installing OpenVPN the hostname is bound to 10.8.0.1. So when you ping your hostname it pings to 10.8.0.1
Details: OpenVPN installs an additional "OpenVPN TAP-Windows6" Network Adapter. Thus your network has following config:
LAN-Adapter ------> 192.168.2.140
OpenVPN TAP-Windows6 Adapter -> 10.8.0.1
If the hostname of my machine is DOLLY and I ping that hostname from my internal network my ping is sent to 10.8.0.1. If I connect to my machine using "DOLLY" it connects to 10.8.0.1. I want it to connect to 192.168.2.140.
How can I tell windows to resolve DOLLY to my LAN-Adapter (and not OpenVPN adapter)?
>ping DOLLY -4
Ping wird ausgeführt für DOLLY [10.8.0.1] mit 32 Bytes Daten:
Antwort von 10.8.0.1: Bytes=32 Zeit<1ms TTL=128
Antwort von 10.8.0.1: Bytes=32 Zeit<1ms TTL=128
Antwort von 10.8.0.1: Bytes=32 Zeit<1ms TTL=128
Antwort von 10.8.0.1: Bytes=32 Zeit<1ms TTL=128