How to Configure Wpad.Dat to Bypass a Local Address

Written by joshua laud
  • Share
  • Tweet
  • Share
  • Email

The Web Proxy Autodiscovery Protocol (WPAD) is a protocol used to locate Web URLS when you're browsing the Internet. The settings for a WPAD are stored in a wpad.dat file, which is a basic text file saved with a .dat extension. Wpad.dat files can be configured in Notepad, which is installed on all Windows machines. Wpad.dat files are the same as proxy.pac settings files, which are used by proxy servers as a bypass tool. Therefore, you can easily configure one to bypass a local address.

Skill level:


  1. 1

    Click "Start," type "notepad" and press "Enter."

  2. 2

    Type the following code into Notepad:

    function FindProxyForURL(url, host)


    if (isInNet(myIpAddress(), "", ""))

    return "PROXY";


    return "DIRECT";


  3. 3

    Replace the IP addresses listed, depending on your purpose. In the example in Step 2, the proxy checks if the local address is "" in the "" subnet and, if it is, redirects it to "" Otherwise, it allows it to continue.

  4. 4

    Click "File" and "Save." Click the "File Type" drop-down, and click "All Files." Save the file as "wpad.dat" without quotes.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.