{"id":16132180,"url":"https://github.com/treer/ip4","last_synced_at":"2025-06-16T05:02:43.344Z","repository":{"id":22671050,"uuid":"26014457","full_name":"Treer/ip4","owner":"Treer","description":"Windows command to compactly list the IP address of every network adapter, as well as the external IP address if the Internet is accessible.","archived":false,"fork":false,"pushed_at":"2022-11-05T01:23:28.000Z","size":95,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-11T04:18:55.177Z","etag":null,"topics":["cmd","dos-command","ip-addresses","windows"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Treer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-31T11:58:53.000Z","updated_at":"2024-06-30T02:52:08.000Z","dependencies_parsed_at":"2023-01-11T21:43:17.389Z","dependency_job_id":null,"html_url":"https://github.com/Treer/ip4","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/Treer/ip4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treer%2Fip4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treer%2Fip4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treer%2Fip4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treer%2Fip4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Treer","download_url":"https://codeload.github.com/Treer/ip4/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treer%2Fip4/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260101690,"owners_count":22959032,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmd","dos-command","ip-addresses","windows"],"created_at":"2024-10-09T22:29:18.282Z","updated_at":"2025-06-16T05:02:43.284Z","avatar_url":"https://github.com/Treer.png","language":"C#","readme":"# ip4\n\nA Windows command line utility to list the IP address of every network adapter, as well as the external IP address if the Internet is accessible.\n\n * [Executable](https://github.com/Treer/ip4/releases/latest)\n * [Source code](https://github.com/Treer/ip4)\n \n\u003cimg src=\"https://treer.github.io/images/ip4screenshot.png\" width=\"677\" height=\"343\" /\u003e\n\nSaves hunting through pages of noise from `ipconfig /all`\n\n### Usage:\n    \n        ip4 [options]\n    \n    Most useful options:\n        \n        -o      Optimizes the order of external-IP URLs based on response\n                times. It is recommended that you run ip4 with this option\n                at least once. The optimized order is saved and will be \n                used each time ip4 is run.\n\n        -s      Skip the external-IP lookup. When the external IP address \n                doesn't matter, execution time and service bandwidth can  \n                be saved by skipping unnecessary lookups.\n              \n        -s:on   Persists the -s option so that external-IP lookups are \n                always skipped when ip4 is run (until ip4 is run with the \n                -s:off option)\n\n                \n    All options:\n      \n        -o  Optimizes the order of external-IP services based on response.\n        -s  Skip the external-IP lookup. Shows only adapter IP addresses.\n        -q  Quiet. Returns only IP addresses. \n        -v  Verbose. Full details are returned.        \n        -c  Creates a new .ini file with default values (overwrites old \n            one if it exists).\n        -p  Lists the URLs used for external-IP lookup in the order they \n            are tried, and the regular expression applied to each URL.\n        -k  Keep URL. Adds an external-IP lookup service to the URL list.\n            Use -w:\u003cwebpage\u003e to specify the URL and -e:\u003cregularExpression\u003e \n            to specify the regular expression for the URL.\n        -fp Format-Plain. No colour will be used in the output.\n\n            \n        -p:\u003cpositionIndex\u003e        Perform the external-IP lookup using the \n                                  URL at the specific position (for random \n                                  page use 0).\n       \n        -w:\u003cwebPage\u003e              Web page url. Works with -e switch, and \n                                  -k switch.\n        -t:\u003cmiliseconds\u003e          Download timeout. Default value is 10000\n        -e:\u003cregularExpression\u003e    Regular expression. Works with -w \n                                  switch, and -k switch.\n        -s:on                     Makes -s the default behaviour.\n        -s:off                    Makes external-IP lookup the default \n                                  behaviour.\n\n\nFor more details, see the content of the .ini file located with the ip4\nexecutable, or sometimes located in `%appdata%\\ip4\\` if the executable's \ndirectory isn't writable.\n\n### Output:\nBy default, six columns of information are displayed for each IPv4 interface. Quiet (-q) and verbose (-v) options can adjust how much of each column is shown.\n\n* IP address\n* Mask \n* Status - this consists of one of the following:\n    * Up - The interface can transmit data packets. (When the interface is \"Up\" the output text for the interface is colored green)\n    * Down      - The interface cannot transmit data packets.\n    * Testing   - The interface is running tests.\n    * Unknown   - The network interface status is not known.\n    * Dormant   - The interface is not in a condition to transmit data packets, it is waiting for an external event.\n    * Missing   - The network interface is unable to transmit data packets because of a missing component, typically a hardware component.\n    * LayerDown - The network interface is unable to transmit data packets because it runs on top of one or more other  interfaces, and at least one of these \"lower layer\" interfaces is down.\n* \"via DHCP\" - this column is used to indicate which interfaces have had their IP addresses assigned to them by a DHCP server. When an IP address is marked as \"via DHCP\", it means the interface is configured to obtain its IP address using DHCP, and the current IP address is not a \"fallback\" IP address such as would be used when DHCP failed (aka Automatic Private IP Addresses). Note: There may be edge cases where both of these conditions are satisfied while the current IP address did not come from a DHCP server.     \n* Network adapter name\n* Network adapter description\n\n### Credits:\nip4 is free and open source. It uses routines from [outerIP](http://primocode.blogspot.com.au/2013/12/i-spent-couple-of-hours-searching-for.html), a command-line utility by primoz@licen.net which provides more functions related to the external IP addresses, such as launching a script if the external IP address changes.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreer%2Fip4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftreer%2Fip4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreer%2Fip4/lists"}