Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michalswi/whatismyip2
Check and display the source IP
https://github.com/michalswi/whatismyip2
ip-scanner
Last synced: about 2 months ago
JSON representation
Check and display the source IP
- Host: GitHub
- URL: https://github.com/michalswi/whatismyip2
- Owner: michalswi
- Created: 2020-09-11T13:27:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-30T11:10:44.000Z (11 months ago)
- Last Synced: 2024-06-19T17:51:57.891Z (7 months ago)
- Topics: ip-scanner
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## **IP checker**
Check and display the IP address of the host that sent the packet.
### # OS req
```
libc-dev
libpcap-dev
gcc
make
```### # how to run
```
# docker (if eth* available at your PC)make docker-build
make docker-run
OR
SERVER_PORT=5050 make docker-runcurl localhost:8080/
curl localhost:8080/ipmake docker-stop
# VM
make build
sudo SERVER_PORT=8080 ./whatismyip2 // if eth* available
OR
sudo SERVER_PORT=8080 ./whatismyip2 -intercurl :8080/
curl :8080/ip
```