myIpAddressEx()

Microsoft IPv6 extension. Semicolon-separated list of the computer's addresses; which addresses and in which order depends on the engine.

myIpAddressEx()  →  string

Used in under 1% of the real PAC files in the PAC file statistics.

Only in engines with the “Ex” extensions (see the availability table). The list differs a lot between engines, so treat it as a list of strings in an unknown format.

Example

var mine = myIpAddressEx();

myIpAddressEx returns a different list in every engine, and Firefox does not have it

Chrome and Edge returned a single address, the same one as myIpAddress(). Windows (WinHTTP and WinINet) returns every address of every adapter. That includes link-local IPv6 addresses in brackets with a zone suffix and 169.254.x.x addresses of adapters that got no address from DHCP, and the order changed with the interface metrics. pactester lists the addresses of the computer’s own name. Firefox has no myIpAddressEx at all, so an unguarded call fails there. Guard the call with typeof myIpAddressEx == "function" and treat the result as a list of strings in an unknown format and order. Paste your file into the PAC file tester and switch between the Chromium, Firefox and pacparser profiles to see which answer each engine gives.

Check how your own file behaves with the PAC file tester: switch the engine profile between Chromium, Firefox, pacparser and Windows and compare the trace. All engine differences are collected in pactester vs Chrome and Firefox.

Engine notes

EngineBehaviourSource
chromiumEvery address found by the first step of the myIpAddress() search that finds any; with a route to the internet that is normally one address, the same as myIpAddress(). Link-local addresses only as a last resort, then one of them.code, verified 2026-10-14
services/network/proxy_auto_config_library.cc@155.0.8059.77 MyIpAddressImpl::GetResultForMyIpAddressEx
chromiumEdge 155 returned one address, the same as myIpAddress(), in every setup with several adapters.lab, verified 2026-10-14
Windows 11 25H2
winhttpA list separated by ";": the link-local IPv6 addresses in brackets with their zone suffix (such as %7), then the IPv4 addresses of all adapters, including 169.254.x.x addresses. Where every adapter had an address, the IPv4 addresses came in the order of the interface metric. A connected VPN adapter came first with a full tunnel and last with split tunnelling.lab, verified 2026-10-14
Windows 11 25H2
wininetThe same list as WinHTTP.lab, verified 2026-10-14
Windows 11 25H2
pacparserThe addresses of the computer's own name (IPv4 and IPv6), or the value set with setmyip().code, verified 2026-10-14
src/pacparser.c@v1.5.3 my_ip_ex()

Availability

Derived from each engine's vendored helper library plus its native bindings (see engines).
Functionchromium
<=51
chromium
>=52
firefox
all
pacparser
<=1.4.6
pacparser
>=1.5.1
winhttp
11-25H2
wininet
11-25H2
reference
all
myIpAddressExyesyesnoyesyesyesyesno

Related rules

Last updated: