Permalink
Find file
e98467a Jan 19, 2016
20 lines (16 sloc) 1.31 KB

Misc

Miscellaneous Java servlets

PingImageServlet

Returns a green image if IP address is PING'able and returns a red image when it is not PING'able. Use it to add visual indications of device status on web pages. HTML example: <img src="http://pi.pla1.net?ip=8.8.8.8"> 8.8.8.8<br>

8.8.8.8
8.8.4.4
127.0.0.1
169.254.254.254
169.254.254.253
208.67.222.222
208.67.220.220

TimeImageServlet

Display the time of day in an image. Refreshes every 60 seconds. Used here: http://time0.net

MyIpServlet

Returns your IP address. Handy for scripting. Used here: http://ip.pla1.net