3 ms·
Does anyone know of a site which returns nothing but your IP address in text/plain when hit with a GET request? Such a thing would be useful for scripting purp
by JonnieCache 15y ago
Does anyone know of a site which returns nothing but your IP address in text/plain when hit with a GET request?
Such a thing would be useful for scripting purposes.
- llambda 15y agohttp://whatismyip.org http://whatismyip.org
- hboon 15y agohttp://ifconfig.me/ http://ifconfig.me/ and useful stuff other than IP address (scroll down)
- brador 15y agoA competent programmer could build it in the time it took you to read this.
- BitMastro 15y agoA competent programmer should avoid unnecessary complexity as well, I suppose, but you are equally right.
- JonnieCache 15y agoYes indeed. However this competent programmer has paid work to be doing, and possesses the certain knowledge that such a thing exists already. Anyway, I'll bite: lambda { |env| [200, {'Content-Type'=>'text/plain'}, [Rack::Request.new(env).ip]] }
- deleted 15y ago[deleted]
- piers 15y agohttp://icanhazip.com http://icanhazip.com
- bradleyland 15y agoThere's also http://jsonip.com/ http://jsonip.com/, which can be useful for scripting.