Getting the proxy server settings.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?V2luRGV2?=

    #1

    Getting the proxy server settings.

    How can I get the proxy setting for the current machine? I can view them in
    IE but I want to be able to display/change them through my own interface.

    TIA - Jeff.
  • Bodyboarder20

    #2
    Re: Getting the proxy server settings.

    On Aug 3, 8:26 am, WinDev <Win...@discuss ions.microsoft. comwrote:
    How can I get the proxy setting for the current machine? I can view them in
    IE but I want to be able to display/change them through my own interface.
    >
    TIA - Jeff.
    You need to connect to the machine registry remotely...

    The registry keys that house the proxy data are:
    [HKEY_CURRENT_US ER\Software\Mic rosoft\Windows\ CurrentVersion\ Internet
    Settings]
    "ProxyServer"=" <your proxy IP address>"
    "ProxyEnable"=d word:00000001
    "ProxyOverride" ="<local>"

    Just lookup how to access a machines registry remotely via C#...

    Comment

    • Bodyboarder20

      #3
      Re: Getting the proxy server settings.



      I just realized you said "Current" machine. Just access the registry
      on the machine and you can update all the info you need to via the
      Keys above.

      Comment

      • Nicholas Paldino [.NET/C# MVP]

        #4
        Re: Getting the proxy server settings.

        That's actually the wrong way to do it, as the registry is an
        implementation detail. The proper way is through the WinInet classes.


        --
        - Nicholas Paldino [.NET/C# MVP]
        - mvp@spam.guard. caspershouse.co m

        "Bodyboarde r20" <ShieldsJared@g mail.comwrote in message
        news:1186145519 .070863.219440@ 22g2000hsm.goog legroups.com...
        >
        >
        I just realized you said "Current" machine. Just access the registry
        on the machine and you can update all the info you need to via the
        Keys above.
        >

        Comment

        Working...