OwenWatson Posted December 26, 2006 Share Posted December 26, 2006 Is there any way I can detect the existence of a particular network connection (set up by Dundial)? I'm creating a toggle exe: if there's a network connection (VPN) it disconnects, otherwise it connects. Link to comment Share on other sites More sharing options...
eynstyne Posted December 27, 2006 Share Posted December 27, 2006 If the IP address is 127.0.0.1 or 0.0.0.0 then it will connect. Have a look at I think it's called "_GetIP()" if _GetIP("MyComputer") = 127.0.0.1 or 0.0.0.0 then TCPConnect() else TCPDisconnect() endif Something like that F@m!ly Guy Fr33k! - Avatar speaks for itself__________________________________________________________________________________________ite quotes... - Is your refrigerator running? If it is, It probably runs like you...very homosexually - Christians don't believe in gravity - Geeze Brian where do you think you are, Payless?- Show me potato Salad!__________________________________________________________________________________________Programs available - Shutdown timer[indent][/indent] Link to comment Share on other sites More sharing options...
OwenWatson Posted December 27, 2006 Author Share Posted December 27, 2006 If the IP address is 127.0.0.1 or 0.0.0.0 then it will connect. Have a look at I think it's called "_GetIP()" I've had a look at the function list and can't see anything that resembles that. There's also the problem that the VPN connection is on top of the existing connection, so the computer will have at least two IP addresses when connected via VPN. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now