Your hostname:
38.107.179.243
Your IP-address:
38.107.179.243
You are connected via:
IPv4
API & Commandline (CLI)

API: http://[v4/6.]myhostname.net/json [example: v4 v6 auto]

CLI: curl myhostname.net

Alfred extensions

Download: MyHostname.alfredextension (1KB)
Get and copy your public hostname.
Ex. hostname or hostname 6 to force IPv6.

Download: MyHostname-IP.alfredextension (955B)
Get and copy your public IP-address.
Ex. ip or ip 6 to force IPv6.