467,134 Members | 1,043 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,134 developers. It's quick & easy.

Bypass proxy....via code?

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.

Aug 20 '07 #1
  • viewed: 6200
Share:
1 Reply
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)

<Ol*****@gmail.comwrote in message
news:11**********************@r29g2000hsg.googlegr oups.com...
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.

Aug 20 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by nitrogenycs@web.de | last post: by
2 posts views Thread by Mahesh Devjibhai Dhola | last post: by
3 posts views Thread by Codex Twin | last post: by
10 posts views Thread by Parth | last post: by
6 posts views Thread by Jan | last post: by
5 posts views Thread by HenrySeque | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.