Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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-run

curl localhost:8080/
curl localhost:8080/ip

make docker-stop

# VM

make build

sudo SERVER_PORT=8080 ./whatismyip2 // if eth* available
OR
sudo SERVER_PORT=8080 ./whatismyip2 -inter

curl :8080/
curl :8080/ip
```