Connecting Tech Pros Worldwide Help | Site Map

Bypass proxy....via code?

OlaPihl@gmail.com
Guest
 
Posts: n/a
#1: Aug 20 '07
Hi,

How can I by code enable and disable "Bypass proxy server for local
adresses" in Internet Explorer / Tools / Internet Options /
Connections / LAN Settings.

I have made a program (VB.Net) that can enable and disable the proxy
server but I can't find how to do the "bypass ......"

Would really appreciate som help.

Newbie Coder
Guest
 
Posts: n/a
#2: Aug 20 '07

re: Bypass proxy....via code?


Hi,

The registry keys needed for bypass are these:

Bypass Proxy:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet
Settings\Connections]
"DefaultConnectionSettings"=hex:3c,00,00,00,06,00, 00,00,03,00,00,00,00,00,00,\
00,07,00,00,00,3c,6c,6f,63,61,6c,3e,00,00,00,00,01 ,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 ,00,00
"SavedLegacySettings"=hex:3c,00,00,00,8a,18,00,00, 03,00,00,00,00,00,00,00,07,\
00,00,00,3c,6c,6f,63,61,6c,3e,00,00,00,00,01,00,00 ,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

Bypass Proxy (Unchecked):

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet
Settings\Connections]
"DefaultConnectionSettings"=hex:3c,00,00,00,07,00, 00,00,03,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,01,00,00,00,00,00,00,00 ,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00
"SavedLegacySettings"=hex:3c,00,00,00,8f,18,00,00, 03,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,01,00,00,00,00,00,00,00,00,00 ,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00

Unchecked: Use A Proxy For Your LAN:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet
Settings\Connections]
"DefaultConnectionSettings"=hex:3c,00,00,00,08,00, 00,00,01,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,01,00,00,00,00,00,00,00 ,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00
"SavedLegacySettings"=hex:3c,00,00,00,92,18,00,00, 01,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,01,00,00,00,00,00,00,00,00,00 ,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00

Enable Proxy:

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware
Profiles\0001\Software\Microsoft\windows\CurrentVe rsion\Internet Settings]
"ProxyEnable"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet Settings]
"ProxyEnable"=dword:00000001

Proxy Override:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet Settings]
"ProxyOverride"="<local>"

Please Note: When the BYPASS PROXY FOR LOCAL... is unchecked then the
ProxyOverride key is deleted

Ovbiously your registry values maybe different from mine so please check

--
Newbie Coder
(It's just a name)



<OlaPihl@gmail.comwrote in message
news:1187592000.643801.316050@r29g2000hsg.googlegr oups.com...
Quote:
Hi,
>
How can I by code enable and disable "Bypass proxy server for local
adresses" in Internet Explorer / Tools / Internet Options /
Connections / LAN Settings.
>
I have made a program (VB.Net) that can enable and disable the proxy
server but I can't find how to do the "bypass ......"
>
Would really appreciate som help.
>

Closed Thread