CoachBarker
Well-known member
- Joined
- Jul 26, 2007
- Messages
- 133
- Programming Experience
- 1-3
When I run my project at work (on my desktop or anyone elses) there is no problem with this line of code and eveything works
But when I run the project at home on my laptop to test the VPN connections I get a count error, so can I replace .Remove(10, 3) to compare the PPP Adapter IP Address with
We only need to compare the first 10 chaaracters and If you haven't been following this, it is part of a Function to see if a VPN is running.
Thanks
CoachBarker
VB.NET:
If pppIPAddresses = (cInterface.GetIPProperties.UnicastAddresses.Item(0).Address.ToString().Remove(10, 3)) Then
But when I run the project at home on my laptop to test the VPN connections I get a count error, so can I replace .Remove(10, 3) to compare the PPP Adapter IP Address with
VB.NET:
If pppIPAddresses = (cInterface.GetIPProperties.UnicastAddresses.Item(0).Address.ToString().StartsWith(111.111.11)) Then
We only need to compare the first 10 chaaracters and If you haven't been following this, it is part of a Function to see if a VPN is running.
Thanks
CoachBarker