IP Address script documentation

Standard

To get your IP address, simply retrieve:
https://tools.seanhelling.com/ip/

Example: 3.141.31.209


Hexadecimal

To get a hexadecimal representation of your IP, use:
https://tools.seanhelling.com/ip/?hex

Example: 38d1fd1


Binary

To get a binary representation of your IP, use:
https://tools.seanhelling.com/ip/?bin

Example: 11100011010001111111010001


Decimal

To get a decimal representation of your IP, use:
https://tools.seanhelling.com/ip/?dec

Example: 59580369


Reverse DNS

To retrieve a reverse DNS lookup for your IP address, you can use:
https://tools.seanhelling.com/ip/?dns

Example: ec2-3-141-31-209.us-east-2.compute.amazonaws.com


JSON

If you'd like a JSON-encoded representation of any of your data, pass json as a GET variable.
For example: https://tools.seanhelling.com/ip/?json
might return
{ "ip": "3.141.31.209" }

Requesting JSON without specifying further will return your JSON-encoded IP address in only the standard format.

You can also use any of the above requests to specify which data should appear in your JSON-encoded array. For example, if you were to request
https://tools.seanhelling.com/ip/?json&ip&dns
you would receive something to the effect of
{ "ip": "3.141.31.209", "dns": "ec2-3-141-31-209.us-east-2.compute.amazonaws.com" }

You can use the variable all along with json to get all of the available data returned to you in JSON.
https://tools.seanhelling.com/ip/?json&all
would return
{ "ip": "3.141.31.209", "hex": "38d1fd1", "bin": "11100011010001111111010001", "dec": 59580369, "dns": "ec2-3-141-31-209.us-east-2.compute.amazonaws.com" }