I have a server in a dynamic IP network. When this IP is changed, I have set my router to handle this. The IP is updated correctly to the domain that OpenVpn is used.
The problem is in the client, that try to connect to the old IP. I am getting this message:
Preserving recently used remote address: [AF_INET]x.x.x.x:Y
Where x.x.x.x is the last IP that OpenVpn could connect.
How could avoid to try to connect to the old IP? I want that OpenVpn connects to the IP that is getting when I try to connect to mydomain.com.
I am using 2.5.4 version of OpenVpn.
Also, the config file is this:
client
dev tun
dev-node "OpenVPN Wintun"
windows-driver wintun
proto udp
remote mydomain.com 1111
resolv-retry infinite
nobind
persist-key
persist-tun
Thanks.