Skip to content

michalswi/whatismyip2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

curl <vm_ip>:8080/
curl <vm_ip>:8080/ip

About

Check and display the source IP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published