#162434 - 2006-05-24 06:49 PM
Unbind TCP/IP Protocol per adapter using SetIPOptions()?
|
jdogg
Getting the hang of it
Registered: 2003-09-11
Posts: 91
Loc: RTP, North Cakalaka, USA
|
Hi All, I am trying to figure out a way (hopefully using KiX) to unbind the TCP/IP protocol from a specific network adapter. This method is faster than enabling/disabling the entire adapter... however, netsh does not seem to be any help here. I stumbled upon SetIPOptions and this seems like a useful UDF, but maybe falls short for what I am looking for. Does anyone know of a way to do this? What I would like to do is unbind TCP/IP from one of the network adapters that I select, and be able to bind it back using the same script. Thanks for any direction you may provide. -Jdogg
|
|
Top
|
|
|
|
#162436 - 2006-05-24 07:25 PM
Re: Unbind TCP/IP Protocol per adapter using SetIPOptions()?
|
jdogg
Getting the hang of it
Registered: 2003-09-11
Posts: 91
Loc: RTP, North Cakalaka, USA
|
Well, my and my colleagues have the company network connection and a wireless open connection (i.e. no proxy/firewall). I used to be able to easily switch between the two by disabling my wired connection and enabling wireless. However, since I installed VMWare workstation, disabling my adapters rarely works at all without a reboot. I do need VMware installed though, so removing it isn't an option.
Anyway, I figured out that if I go into the wired connection and uncheck TCP/IP, all traffic goes through the wireless connection. I can then enable TCP/IP on the wired connection and I am back behind the firewall.
I was hoping to use a KiX, VB, or some other script to disable TCP/IP on the wired adapter, and then maybe have a different script that I can click on to re-enable it.
Thanks for the quick response and the nice UDF, Allen! -Jdogg
|
|
Top
|
|
|
|
#162438 - 2006-05-24 07:41 PM
Re: Unbind TCP/IP Protocol per adapter using SetIPOptions()?
|
jdogg
Getting the hang of it
Registered: 2003-09-11
Posts: 91
Loc: RTP, North Cakalaka, USA
|
Yeah... I hear ya Les. We are the cops, though. They hire us to police their employees. We don't police ourselves.
|
|
Top
|
|
|
|
#162441 - 2006-05-24 09:28 PM
Re: Unbind TCP/IP Protocol per adapter using SetIPOptions()?
|
jdogg
Getting the hang of it
Registered: 2003-09-11
Posts: 91
Loc: RTP, North Cakalaka, USA
|
That thing looks dangerous. Won't that unbind TCP/IP for all adapters and not just specific ones? As I mentioned, I would like my wireless adapter to remain binded while my wired one is not.
Thanks for all the help.
|
|
Top
|
|
|
|
#162443 - 2006-05-25 01:52 PM
Re: Unbind TCP/IP Protocol per adapter using SetIPOptions()?
|
jdogg
Getting the hang of it
Registered: 2003-09-11
Posts: 91
Loc: RTP, North Cakalaka, USA
|
Ok... thanks for all the help. I will give devcon a try. Thanks guys! -Jdogg
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|