I have a very frustrating issue with a VPN connection initiated with Rasdial.
I have computers (Windows XP Professional SP2) which serve as an unmanned field measuring devices. They automatically initiate a VPN connection with a server over a UMTS connection through the use of a batch file that I call from an application.
For the connection to be initiated I use the following batch file:
rasdial vpnserver /disconnect rasdial VPNserver stationname password
This works fine as long as the UMTS connection is up and healthy. However if the UMTS drops for whatever reason and then comes back again, I can't get the VPN connection up again. When I run the above batch file I get the error:
756 "connection is already being dialled"
I can't manage to get the connection "cleared" .The only way to connect again is through rebooting the whole computer, which is not acceptable.
I have tried to expand the batch file as follows;
rasdial vpnserver /disconnect route -f ipconfig /release ipconfig /renew arp -d * nbtstat -R nbtstat -RR ipconfig /flushdns ipconfig /registerdns rasdial VPNserver stationname password
to try and reset anything which has something to do with networking. Sadly this doesn't have any effect, I still get the same error.
There must be something that gets reset by rebooting the machine, but I can't manage to find out what this is and how to do this from the command line.
How I can solve this issue without rebooting the whole machine?