Wednesday, June 1, 2022

 Find public IP from Cisco CLI

checkip.dyndns.org is a simple http page that shows your public IP. If your device does not have DNS-resolution than use their IP 193.122.130.0 instead.

You need to type what is in green


# telnet checkip.dyndns.org 80  
Trying checkip.dyndns.org (193.122.130.0, 80)... Open
GET / HTTP/1.1
Host: checkip.dyndns.org
<hit enter>
<hit enter>
HTTP/1.1 200 OK
Date: Wed, 01 Jun 2022 13:53:04 GMT
Content-Type: text/html
Content-Length: 104
Connection: keep-alive
Cache-Control: no-cache
Pragma: no-cache

<html><head><title>Current IP Check</title></head><body>Current IP Address: 85.7.234.201</body></html>


test

import os import argparse import json def load_json_file(filepath):     with open(filepath, 'r') as f:         return json.load(f) d...