Bypass proxy....via code?

O

OlaPihl

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.
 
N

Newbie Coder

Hi,

The registry keys needed for bypass are these:

Bypass Proxy:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\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\CurrentVersion\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\CurrentVersion\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\CurrentVersion\Internet Settings]
"ProxyEnable"=dword:00000001

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

Proxy Override:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top