https://github.com/jefersonsv/getip
Get your public or external IP address
https://github.com/jefersonsv/getip
csharp docker getip
Last synced: about 1 month ago
JSON representation
Get your public or external IP address
- Host: GitHub
- URL: https://github.com/jefersonsv/getip
- Owner: jefersonsv
- License: mit
- Created: 2017-12-12T15:39:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-26T16:37:07.000Z (about 7 years ago)
- Last Synced: 2025-10-08T07:28:36.654Z (9 months ago)
- Topics: csharp, docker, getip
- Language: C#
- Size: 15.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Getip
It's a fast kestrel server to get your public IP address
## Docker
Images to run getip in docker container
### from docker hub
```bash
docker run -p 4020:5000 jefersonsv/getip
```
### from local container
```bash
git clone https://github.com/jefersonsv/getip
cd getip/src
sudo docker build -t getip .
sudo docker run --restart=unless-stopped -d -p 4020:5000 --name getip getip
```
## How to test
```bash
curl 'http://localhost:4020'
```
## Run locally
```bash
git clone https://github.com/jefersonsv/getip
dotnet run
```
# Similar third party hosted services
* https://api.ipify.org
* http://checkip.dyndns.org