Miscellaneous Java servlets

8
3
Java

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=“https://pingimage.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

Alternate format using request path: https://pingimage.net/cnn.com

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