{"id":25411380,"url":"https://github.com/jimurrito/get-ip","last_synced_at":"2026-06-23T13:33:32.319Z","repository":{"id":277072894,"uuid":"931247705","full_name":"jimurrito/Get-IP","owner":"jimurrito","description":"Simple server that provides the public IP back to the sending client. Written fully in Powershell.","archived":false,"fork":false,"pushed_at":"2025-02-12T01:12:34.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T10:53:50.916Z","etag":null,"topics":["api","automation","debugging","get-ip","http-server","ip","publicip","security","server","socket","tooling"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jimurrito.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-12T00:39:38.000Z","updated_at":"2025-02-12T01:12:37.000Z","dependencies_parsed_at":"2025-02-12T01:44:07.629Z","dependency_job_id":null,"html_url":"https://github.com/jimurrito/Get-IP","commit_stats":null,"previous_names":["jimurrito/get-ip"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jimurrito/Get-IP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimurrito%2FGet-IP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimurrito%2FGet-IP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimurrito%2FGet-IP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimurrito%2FGet-IP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimurrito","download_url":"https://codeload.github.com/jimurrito/Get-IP/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimurrito%2FGet-IP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34691973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","automation","debugging","get-ip","http-server","ip","publicip","security","server","socket","tooling"],"created_at":"2025-02-16T10:17:33.768Z","updated_at":"2026-06-23T13:33:32.300Z","avatar_url":"https://github.com/jimurrito.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Get-IP\nSimple server that provides the public IP back to the sending client. Written fully in Powershell.\n\n- Compatible with both Windows and Linux.\n- Small compute foot print.\n- No install required (Pwsh core required for Linux)\n\n\u003cbr\u003e\u003cbr\u003e\n\n# Install powershell core in Linux (Debian-based)\n\n### Automated\n```bash\ngit clone https://github.com/jimurrito/get-ip.git\ncd get-ip/\nsh setup.sh\n```\n\n### Manual\n```bash\n# Install pre-requisite packages.\nsudo apt-get install -y wget\n\n# Download the PowerShell package file\nwget https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell_7.5.0-1.deb_amd64.deb\n\n# Install the PowerShell package\nsudo dpkg -i powershell_7.5.0-1.deb_amd64.deb\n\n# Resolve missing dependencies and finish the install (if necessary)\nsudo apt-get install -f\n\n# Delete the downloaded package file\nrm powershell_7.5.0-1.deb_amd64.deb\n```\n\n\u003cbr\u003e\u003cbr\u003e\n\n# Start server-side\n**From bash**\n```bash\n# Setup looping server on port '8080'\npwsh get-ip-svr.ps1\n# Non-looping mode\npwsh get-ip-svr.ps1 -SingleRun\n# Custom Port\npwsh get-ip-svr.ps1 -Port 6900\n```\n\n**From Powershell**\n```powershell\n# Setup looping server on port '8080'\nget-ip-svr.ps1\n# Non-looping mode\nget-ip-svr.ps1 -SingleRun\n# Custom Port\nget-ip-svr.ps1 -Port 6900\n```\n\nOnce the server has started in looping mode, you can quit the loop by pressing the `q` key. The server will indicate the same on boot.\n```bash\npwsh get-ip-svr.ps1\n# [2025-02-12T00:35:17.177+00:00] Listening on port 8080... Press 'q' to quit.\n```\n\n\u003cbr\u003e\u003cbr\u003e\n\n# Start Client-side\n**From bash**\n```bash\n# Connect to the server @ 127.0.0.1:8080\npwsh get-ip-client.ps1\n# Connect to a custom host/port\npwsh get-ip-svr.ps1 -Target 192.168.0.4 -Port 6900\n```\n\n**From Powershell**\n```powershell\n# Connect to the server @ 127.0.0.1:8080\nget-ip-client.ps1\n# Connect to a custom host/port\nget-ip-svr.ps1 -Target 192.168.0.4 -Port 6900\n```\n\n\u003cbr\u003e\u003cbr\u003e\n\n# Using `Get-IP-*.ps1`\n```bash\n# Server side\npwsh get-ip-svr.ps1\n# Output:\n# [2025-02-12T00:44:14.453+00:00] Listening on port 8080... Press 'q' to quit.\n\n# Client side\nget-ip-client.ps1 # =\u003e 127.0.0.1:8080\n# Response:\n# ::ffff:127.0.0.1\n```\n\u003e If you connect over a network or the internet, the IP response will reflect the clients IP.\n\u003e  - Connecting from internal network =\u003e Private IP\n\u003e  - Connecting from public internet =\u003e Public IP\n\n\u003cbr\u003e\u003cbr\u003e\n\n# Parameters\n\n### `get-ip-svr.ps1`\n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| `-SingleRun` | Switch | $false | If `-SingleRun` is used during runtime, the server will close the socket after the first connection. |\n| `-Port` | Integer | 8080 | The Layer4 port the socket server will lisen on |\n\n\n### `get-ip-client.ps1`\n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| `-Target` | System.Net.IPAddress | 127.0.0.1 | The target server hosting running the `get-ip-svr.ps1` script. |\n| `-Port` | Integer | 8080 | The Layer4 port the socket client will connect to. |\n\n\u003cbr\u003e\u003cbr\u003e\n\n# Any issues?\nOpen an issue on this github repo!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimurrito%2Fget-ip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimurrito%2Fget-ip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimurrito%2Fget-ip/lists"}