File: whatismyip.lua

package info (click to toggle)
nmap 7.95%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 44,792 kB
  • sloc: cpp: 61,081; ansic: 30,771; python: 17,344; xml: 11,550; sh: 11,400; perl: 2,687; makefile: 996; java: 45; objc: 45
file content (4 lines) | stat: -rw-r--r-- 192 bytes parent folder | download | duplicates (10)
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")