Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

StackOverflow Point

StackOverflow Point Navigation

  • Web Stories
  • Badges
  • Tags
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Web Stories
  • Badges
  • Tags
Home/ Questions/Q 4034
Alex Hales
  • 0
Alex HalesTeacher
Asked: June 3, 20222022-06-03T09:32:40+00:00 2022-06-03T09:32:40+00:00

Controlling Windows Network Adapters with Python to connect to VPNs

  • 0

[ad_1]

Is it somehow possible for me to modify the configuration of the windows (in my case windows 7), network adapter with python?
Network Adapters in Control Panel
I am subscribed to a VPN provider and just want to change the host name address ocasionally (for example if the current connection to their server starts lagging or died entirely), so I can hop around on their servers without having to use their GUI because it’s too much hardware resource taking. Also I just recently found this: https://stackoverflow.com/a/7581831/15163882 ; it seems to actually modify network adapter settings, the issue is it is not modifying my IPVanish network adapter but the “Local Area Connection” network adapter > IPv4 configuration and all it did so far is bricking my network connection by overwriting it with invalid settings. Can anyone help me point it to the correct adapter, I am struggeling to find a documentation apart from the docs that microsoft provided https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-networkadapterconfiguration

Additionally I did some research through githubs code search and after looking at multiple codes I’m not so sure anymore if it would even be possible to edit the host server address of a network adapter to that way cause a dynamic server switch. Here’s my search term https://github.com/search?l=Python&p=1&q=Win32_NetworkAdapterConfiguration%28&type=Code I came to this conclusion, because none of them have included editing the host name at all. But it could also be, that I’m just missing the point entirely and you don’t even have to in first place set the host name adress(also username, password) through code as you would need to, when connecting through the network adapter manually (initially)?

I also noticed that it would be possible just using openvpn through their cmd interface / powershell, but I’m really trying to save hardware resources on the machine I am trying to configure the network adapter on as it’s very resource limited, so I can’t afford a 150-400 memory taking program running in the background.

[ad_2]

  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report
Leave an answer

Leave an answer
Cancel reply

Browse

Sidebar

Ask A Question

Related Questions

  • xcode - Can you build dynamic libraries for iOS and ...

    • 0 Answers
  • bash - How to check if a process id (PID) ...

    • 8038 Answers
  • database - Oracle: Changing VARCHAR2 column to CLOB

    • 1840 Answers
  • What's the difference between HEAD, working tree and index, in ...

    • 1919 Answers
  • Amazon EC2 Free tier - how many instances can I ...

    • 0 Answers

Stats

  • Questions : 43k

Subscribe

Login

Forgot Password?

Footer

Follow

© 2022 Stackoverflow Point. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.