G
G
GingerSibe2021-10-15 20:48:06
Windows
GingerSibe, 2021-10-15 20:48:06

How to change ip on pc using C#?

I want to implement a mini C# program in which I could write the ip / mask / gateway that I need and then by pressing the "apply" button, these settings would be applied on the PC. In general, I want to learn how to give commands to the system through my self-written program, and so I decided to start with this question.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
rPman, 2021-10-15
@GingerSibe

call the standard netsh utility , this will be the easiest way to solve almost any network-related task that can be solved in principle, even those that cannot be solved in the official gui

D
Drno, 2021-10-15
@Drno

than a call via cmd or powershell does not suit you?
to fence C out of the blue ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question