IP Address Extractor
Finds IPv4 and IPv6 addresses in any block of text and lists them for you, with an option to leave out private and loopback addresses. It is useful for pulling addresses out of server logs, error reports or email headers, so you can check them, count them or pass them on.
How to use the IP Address Extractor
- Paste text such as a server log, then select Extract IP addresses.
- Choose IPv4, IPv6 or both. Optionally skip private, loopback and link-local addresses.
Rules applied
- IPv4 addresses must have four numbers from 0 to 255 without leading zeros, so 999.1.1.1 and version numbers such as 1.2.3.4.5 are ignored.
- IPv6 addresses are validated, including shortened forms with :: and addresses ending in IPv4 notation.
Limitations
- Addresses with a port (192.0.2.1:8080) are returned without the port. Nothing is looked up or contacted.
Worked examples
Input
Login from 203.0.113.42 and 10.0.0.7; bad: 999.1.1.1; v6: 2001:db8::1 and ::1, version 1.2.3.4.5
Result
203.0.113.42 10.0.0.7 2001:db8::1 ::1
Input
GET from 192.0.2.15, proxy 192.168.1.1, loopback 127.0.0.1, v6 2001:db8::5, again 192.0.2.15
Result
192.0.2.15
Practical uses
-
Listing visitors from a server log
A sysadmin has a long access log and wants to know which distinct addresses connected. They paste it, choose IPv4 and extract the addresses, which gives a clean list. They can then check that list against a firewall rule without scrolling through the log.
-
Ignoring internal addresses in a report
A support engineer collects addresses from an error report but only cares about outside visitors. They switch on the option to skip private, loopback and link-local addresses. The list that remains contains just the public ones, ready to pass on.
-
Pulling addresses from an email thread
An IT assistant has a forwarded thread that mentions several servers in passing. They paste it in and choose both IPv4 and IPv6, so every valid address is listed. This saves hunting through each message by eye and avoids missing one.
Related tools
Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 1 MiB.