0

We have 3 lease lines for internet connectivity in our office. When there are issues with internet connectivity, the office staff has to go to RUN --> ncpa.cpl --> Right click on network --> select properties --> TCP/IPV4 --> Change default gateway value to shift between lease lines.

I would like to develop a .NET program that is able to detect at runtime the internet connectivity and change the gateway.

I donot want to use programs available on internet, rather, create my own simple application. Please provide some usefull reference for this, I have experience in .NET coding.

1 Answer 1

1

Please take a look on these websites. It might help you to some extent:

Set network configuration programmatically c#

http://social.msdn.microsoft.com/Forums/vstudio/en-US/391e01cf-4558-4375-aa1a-386ed4e3e00a/change-host-ip-address-subnet-mask-and-gateway-settings-using-c-application?forum=csharpgeneral

Sign up to request clarification or add additional context in comments.

4 Comments

OK, thanks, thats about changing configuration, any idea how to detect conenctivity.
Just use the plain function System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable() that return true of false if the connection is up.
I found this in following link, you can use it for further clarifications: stackoverflow.com/questions/2521569/…
One more reference: vbforums.com/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.