# myIpAddressEx()

Source: https://findproxyforurl.net/functions/myipaddressex/ · last updated 2026-10-14

`myIpAddressEx()` → string

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

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

```js
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](https://findproxyforurl.net/check/)
and switch between the Chromium, Firefox and pacparser profiles to see which answer each
engine gives.


## Engine notes

- 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. (source: code, verified 2026-10-14)
- chromium: Edge 155 returned one address, the same as myIpAddress(), in every setup with several adapters. (source: 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. (source: lab, verified 2026-10-14)
- wininet: The same list as WinHTTP. (source: lab, verified 2026-10-14)
- pacparser: The addresses of the computer's own name (IPv4 and IPv6), or the value set with setmyip(). (source: code, verified 2026-10-14)
