myIpAddressEx()
Microsoft IPv6 extension. Semicolon-separated list of the computer's addresses; which addresses and in which order depends on the engine.
myIpAddressEx() → stringOnly 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 asmyIpAddress(). 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
| Engine | Behaviour | Source |
|---|---|---|
| chromium | Every 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 |
| chromium | Edge 155 returned one address, the same as myIpAddress(), in every setup with several adapters. | lab, verified 2026-10-14 |
| winhttp | A 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 |
| wininet | The same list as WinHTTP. | lab, verified 2026-10-14 |
| pacparser | The addresses of the computer's own name (IPv4 and IPv6), or the value set with setmyip(). | code, verified 2026-10-14 |
Availability
| Function | chromium | chromium | firefox | pacparser | pacparser | winhttp | wininet | reference |
|---|---|---|---|---|---|---|---|---|
myIpAddressEx | yes | yes | no | yes | yes | yes | yes | no |