Skip to content

Commit 2694652

Browse files
committed
change external port to 4020
1 parent 7489223 commit 2694652

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
# Getip
2-
It's a fast kestrel server to inform your public IP address
3-
4-
## Windows command line service
5-
```bash
6-
git clone https://github.com/jefersonsv/getip
7-
dotnet run
8-
```
2+
It's a fast kestrel server to get your public IP address
93

104
## Docker
115
Images to run getip in docker container
126

7+
### from docker hub
8+
```bash
9+
docker run -p 4020:5000 jefersonsv/getip
10+
```
1311

1412
### from local container
1513
```bash
@@ -19,17 +17,17 @@ sudo docker build -t getip .
1917
sudo docker run --restart=unless-stopped -d -p 4020:5000 --name getip getip
2018
```
2119

22-
### from docker hub
20+
## How to test
2321
```bash
24-
docker run -p 8081:5000 jefersonsv/getip
22+
curl 'http://localhost:4020'
2523
```
2624

27-
## How to test
25+
## Run locally
2826
```bash
29-
curl 'http://localhost:4020'
27+
git clone https://github.com/jefersonsv/getip
28+
dotnet run
3029
```
3130

3231
## Similar hosted services
3332
* https://api.ipify.org
3433
* http://checkip.dyndns.org
35-

0 commit comments

Comments
 (0)