Click here to Skip to main content
12,821,041 members (40,872 online)
Click here to Skip to main content
Articles » Languages » C# » Applications » Downloads

Stats

447.9K views
17.3K downloads
197 bookmarked
Posted 6 May 2004

SwitchNetConfig - Laptop users, quickly switch network and proxy configuration in different places

, 6 May 2004 CPOL
A handy utility for laptop users which stores network and proxy configuration as profiles and apply a profile very quickly whenever laptop goes to a different network
<?xml version="1.0"?>
<ConfigWrapper xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Profiles>
    <anyType xsi:type="Profile">
      <Name>Home</Name>
      <NICProfiles>
        <anyType xsi:type="NICProfile">
          <Name>[00000001] Intel(R) PRO/100 VE Network Connection</Name>
          <IP>192.168.2.43</IP>
          <Subnet>255.255.255.0</Subnet>
          <Gateway>192.168.2.1</Gateway>
          <DNS>202.141.190.2,202.141.190.3</DNS>
          <UseDHCP>false</UseDHCP>
        </anyType>
      </NICProfiles>
      <IEProfile>
        <UseProxy>true</UseProxy>
        <ProxyName>192.168.2.1:3128</ProxyName>
        <BypassLocal>true</BypassLocal>
        <BypassAddresses />
      </IEProfile>
    </anyType>
    <anyType xsi:type="Profile">
      <Name>Onirban</Name>
      <NICProfiles>
        <anyType xsi:type="NICProfile">
          <Name>[00000001] Intel(R) PRO/100 VE Network Connection</Name>
          <IP>192.168.3.9</IP>
          <Subnet>255.255.255.0</Subnet>
          <Gateway>192.168.3.222</Gateway>
          <DNS>192.168.3.222</DNS>
          <UseDHCP>false</UseDHCP>
        </anyType>
      </NICProfiles>
      <IEProfile>
        <UseProxy>true</UseProxy>
        <ProxyName>10.0.0.2</ProxyName>
        <BypassLocal>true</BypassLocal>
        <BypassAddresses />
      </IEProfile>
    </anyType>
    <anyType xsi:type="Profile">
      <Name>University</Name>
      <NICProfiles>
        <anyType xsi:type="NICProfile">
          <Name>[00000001] Intel(R) PRO/100 VE Network Connection</Name>
          <IP>172.16.2.15</IP>
          <Subnet>255.255.0.0</Subnet>
          <Gateway>172.16.0.7</Gateway>
          <DNS>172.16.0.7</DNS>
          <UseDHCP>false</UseDHCP>
        </anyType>
      </NICProfiles>
      <IEProfile>
        <UseProxy>false</UseProxy>
        <ProxyName />
        <BypassLocal>false</BypassLocal>
        <BypassAddresses />
      </IEProfile>
    </anyType>
    <anyType xsi:type="Profile">
      <Name>BASE</Name>
      <NICProfiles>
        <anyType xsi:type="NICProfile">
          <Name>[00000001] Intel(R) PRO/100 VE Network Connection</Name>
          <IP>192.168.0.114</IP>
          <Subnet>255.255.255.0</Subnet>
          <Gateway>192.168.0.1</Gateway>
          <DNS>192.168.0.1,203.91.141.4</DNS>
          <UseDHCP>false</UseDHCP>
        </anyType>
      </NICProfiles>
      <IEProfile>
        <UseProxy>false</UseProxy>
        <ProxyName />
        <BypassLocal>false</BypassLocal>
        <BypassAddresses />
      </IEProfile>
    </anyType>
    <anyType xsi:type="Profile">
      <Name>DHCP</Name>
      <NICProfiles>
        <anyType xsi:type="NICProfile">
          <Name>[00000001] Intel(R) PRO/100 VE Network Connection</Name>
          <IP />
          <Subnet />
          <Gateway />
          <DNS />
          <UseDHCP>true</UseDHCP>
        </anyType>
      </NICProfiles>
      <IEProfile>
        <UseProxy>false</UseProxy>
        <ProxyName />
        <BypassLocal>false</BypassLocal>
        <BypassAddresses />
      </IEProfile>
    </anyType>
  </Profiles>
</ConfigWrapper>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author


You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170308.1 | Last Updated 7 May 2004
Article Copyright 2004 by Omar Al Zabir
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid