summaryrefslogtreecommitdiffstats
path: root/ncat/scripts/whatismyip.lua
blob: 13ade223859641fa1db1ae5f3e6b6edd6cdadbce (plain)
1
2
3
4
--A "what is my IP" service code. Since most web browsers put up with servers
--not sending proper HTTP headers, you can simply query the service with it.

print(os.getenv "NCAT_REMOTE_ADDR")