Sign in to follow this  
Followers 0
OwenWatson

Detecting network connection

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



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]

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0