Information Technology Grimoire

Version .0.0.1

IT Notes from various projects because I forget, and hopefully they help you too.

find public ip

curl

digitalcrunch@penguin:~/techgrimoire2$ curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
192.24.29.26

wget

digitalcrunch@penguin:~/techgrimoire2$ wget -O - -q icanhazip.com
192.24.29.26


## nslookup
digitalcrunch@penguin:~/techgrimoire2$ nslookup myip.opendns.com resolver1.opendns.com
Server:         resolver1.opendns.com
Address:        208.67.222.222#53

Non-authoritative answer:
Name:   myip.opendns.com
Address: 192.24.29.26

ssh

digitalcrunch@penguin:~/techgrimoire2$ ssh sshmyip.com
The authenticity of host 'sshmyip.com (3.19.111.8)' can't be established.
RSA key fingerprint is SHA256:OhNL391d/beeFnxxg18AwWVYTAHww+D4djEE7Co0Yng.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'sshmyip.com,3.19.111.8' (RSA) to the list of known hosts.
{


"comment": "##     Your IP Address is 192.24.29.26 (45022)     ##",


"family": "ipv4",
"ip": "192.24.29.26",
"port": "45022",
"protocol": "ssh",
"version": "v1.3.0",
"website": "https://github.com/packetsar/checkmyip",
"sponsor": "Sponsored by ConvergeOne, https://www.convergeone.com/"
}
 Connection to sshmyip.com closed by remote host.
Connection to sshmyip.com closed.

telnet

digitalcrunch@penguin:~/techgrimoire2$ telnet telnetmyip.com
Trying 3.19.111.8...
Connected to telnetmyip.com.
Escape character is '^]'.
{


"comment": "##     Your IP Address is 192.24.29.26 (45320)     ##",


"family": "ipv4",
"ip": "192.24.29.26",
"port": "45320",
"protocol": "telnet",
"version": "v1.3.0",
"website": "https://github.com/packetsar/checkmyip",
"sponsor": "Sponsored by ConvergeOne, https://www.convergeone.com/"
}
Connection closed by foreign host.