Kuon Posted September 30, 2016 Share Posted September 30, 2016 Hello guys I'm pretty new to AutoIt so I got stuck in this I guess dumb problem while trying to check if my VPN connection is active, What's been happening is I made a little script that connects to the VPN via mouse location ( this parts fine ) but I can't find a way to check if it successfully connected after all it just clicks on connect once :D, meaning that sometimes it gets like a timeout error and I'm stuck here working my own stuff because I assumed that it connected Link to comment Share on other sites More sharing options...
l3ill Posted September 30, 2016 Share Posted September 30, 2016 Hi and welcome, can we see your code? Maybe one of the TCP functions or Ping with some error checking can help see if you are connected correctly. My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
Kuon Posted September 30, 2016 Author Share Posted September 30, 2016 That the thing I don't know how to check its not a syntax error I just totally ignored the possibility of it timing out and not connecting Link to comment Share on other sites More sharing options...
Kuon Posted September 30, 2016 Author Share Posted September 30, 2016 Oh and I did google first found the ping option etc but since the IP changes its not always the same :S Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted September 30, 2016 Share Posted September 30, 2016 With VPN are you not getting access to an inside address that you otherwise do not have access too? All that matters is that you know an internal IP you can ping, not the IP your connecting with. Else if your checking your adapter IP's and looking to see if you have a VPN IP usually they are in the same subnet range so you can check for the "general" IP instead of the exact one. Example: Local IP = 192.168.1.15 VPN IP = 10.0.15.63 VPN Check If IP = 10.X.X.X then VPN is connected MuffinMan 1 Link to comment Share on other sites More sharing options...
spudw2k Posted October 4, 2016 Share Posted October 4, 2016 There is likely a virtual network adapter which gets the assigned VPN IP address. If you can identify that connection/adapter, you should be able to query WMI for the assigned IP. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF 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