How to change mac address

qlithe

Новичок
Регистрация
07.06.2015
Сообщения
16
Благодарностей
0
Баллы
1
I'm trying to find a way to change the mac address for my network card in ZP (through C#), since doing so gives me a new IP

I'm good at coding in general but when it comes to C# I'm really lost. Haven't found much anywhere regarding the matter.

Anyone got something to share?

Thanks
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 770
Благодарностей
1 180
Баллы
113

qlithe

Новичок
Регистрация
07.06.2015
Сообщения
16
Благодарностей
0
Баллы
1
No but changing the mac for the adapter gives me a new IP
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 770
Благодарностей
1 180
Баллы
113
Got you.

Then most probably you have to try to find a way to change MAC with help of batch file, I assume that will be much more faster and easier :-)
 

qlithe

Новичок
Регистрация
07.06.2015
Сообщения
16
Благодарностей
0
Баллы
1
Yeah almost solved it already :p using a .bat did the trick
 

Nick

Client
Регистрация
22.07.2014
Сообщения
1 963
Благодарностей
796
Баллы
113
There is no method in .NET Framework that would do the job, but googling "change MAC C#" can show you how to call windows API to change it.
 

bill

Client
Регистрация
05.07.2014
Сообщения
355
Благодарностей
9
Баллы
18

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 770
Благодарностей
1 180
Баллы
113

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)