Page 1 of 1

fixed TAP adapter IP address

Posted: Sat Jun 11, 2016 2:57 am
by mike1127
I don't know if I've come to the right place, but please let me know if I need to ask this somewhere else. I'm using the OpenVPN client on Windows, and I want to do something to help protect against accidental VPN disconnects. Specifically I want to use the feature in my application to bind to a specific adapter's IP address. So if I bind to the TAP adapter, and the connection to the VPN is lost, this application will not send any more data in the open. It works fine. The problem, though, is that every time I run OpenVPN (via the GUI) it sets up a different TAP IP. Is there a way I can configure this to be the same every time?

Re: fixed TAP adapter IP address

Posted: Sat Jun 11, 2016 10:37 am
by TinCanTech
If the server is your own then you can setup a CCD file with a fixed IP address.

Re: fixed TAP adapter IP address

Posted: Sat Jun 11, 2016 11:26 am
by mike1127
No the server is not my own, I'm using just the OpenVPN GUI on Windows. When I installed it, it also installed the TAP adapter, but I'm not sure if I've come to right forum to learn how to configure the TAP adapter. Thanks.

Re: fixed TAP adapter IP address

Posted: Sat Jun 11, 2016 11:49 am
by TinCanTech
If the server is not your own then you have to accept the IP the server pushes to you.

Or you can try --ifconfig in the client config file .. but it probably will not work.

Re: fixed TAP adapter IP address

Posted: Sat Jun 11, 2016 12:37 pm
by mike1127
Just to make sure I understand, the IP I want to bind to is the one I see listed in "Ethernet 2" (the TAP adapter) when I run "ipconfig /all". That is the one the server pushes to me?

Re: fixed TAP adapter IP address

Posted: Sat Jun 11, 2016 12:47 pm
by TinCanTech
This one:

Code: Select all

Description . . . . . . . . . . . : TAP-Windows Adapter V9