From 7a2dd31774cd73c76bf7b6b164b4c0c82e288996 Mon Sep 17 00:00:00 2001 From: John W Kerns Date: Tue, 5 Sep 2017 12:40:31 -0700 Subject: [PATCH 1/5] Updated README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a0ff4c8..8e6678c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# [![Twitter][twitter-logo]][twitter] CheckMyIP [![CheckMyIP][logo]][twitter] +# [![Twitter][twitter-logo]][twitter] CheckMyIP (TelnetMyIP) [![CheckMyIP][logo]][twitter] A Telnet and SSH Based Public IP Address Lookup Service From 6eb1e4a9b3fc4999aee113e460edc35c79458abe Mon Sep 17 00:00:00 2001 From: John W Kerns Date: Tue, 5 Sep 2017 12:41:42 -0700 Subject: [PATCH 2/5] README Updated --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e6678c..52ece26 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# [![Twitter][twitter-logo]][twitter] CheckMyIP (TelnetMyIP) [![CheckMyIP][logo]][twitter] +# CheckMyIP (TelnetMyIP [![Twitter][twitter-logo]][twitter]) [![CheckMyIP][logo]][twitter] A Telnet and SSH Based Public IP Address Lookup Service From 2a8265189b65f134d1a4803bce5dec8ce0093142 Mon Sep 17 00:00:00 2001 From: John W Kerns Date: Tue, 5 Sep 2017 12:46:54 -0700 Subject: [PATCH 3/5] README Updated --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 52ece26..95c4be2 100644 --- a/README.md +++ b/README.md @@ -165,7 +165,7 @@ If you would like to help out by contributing code or reporting issues, please d Visit the GitHub page (https://github.com/packetsar/checkmyip) and either report an issue or fork the project, commit some changes, and submit a pull request. -[twitter-logo]: http://i.imgur.com/wWzX9uB.png +[twitter-logo]: http://www.packetsar.com/wp-content/uploads/twitter-logo-35.png [twitter]: https://twitter.com/TelnetMyIP [logo]: http://www.packetsar.com/wp-content/uploads/checkmyip_icon-100.gif [whatismyip]: https://www.whatismyip.com/ From da6f8d5e8eaee470af725dfa34410a76347e39cd Mon Sep 17 00:00:00 2001 From: John W Kerns Date: Tue, 5 Sep 2017 12:55:53 -0700 Subject: [PATCH 4/5] README Updated --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 95c4be2..ad3819b 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ The version of CheckMyIP documented here is: **v1.0.0** ----------------------------------------- ### WHAT IS CHECKMYIP ### -Everybody has used a service like [WhatIsMyIP.com](https://www.whatismyip.com/) before. If you are an IT engineer or even an amateur technology enthusiast, then you have probably had a reason to check to see your public IP address. This service works great when a browser is available, but at times it is not. We often find ourselves logged into a remote Linux machine or a network switch/router which has a command line and terminal clients (Telnet and SSH), but no browser. The CheckMyIP app and the **TelnetMyIP.com** and **SSHMyIP.com** public services were created with this in mind. +Everybody has used a service like [WhatIsMyIP.com](https://www.whatismyip.com/) before. If you are an IT engineer or even an amateur technology enthusiast, then you have probably had a reason to check to see your public IP address. This service works great when a browser is available, but at times it is not. We often find ourselves logged into a remote Linux machine or a network switch/router which has a command line and terminal clients (Telnet and SSH), but no browser. The CheckMyIP app and the [TelnetMyIP.com](telnet://telnetmyip.com/) and **SSHMyIP.com** public services were created with this in mind. ----------------------------------------- From af28b21c255ec742d5c4042b760c227c10e7aecf Mon Sep 17 00:00:00 2001 From: John W Kerns Date: Tue, 5 Sep 2017 13:13:36 -0700 Subject: [PATCH 5/5] README Updated --- README.md | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index ad3819b..579290c 100644 --- a/README.md +++ b/README.md @@ -11,14 +11,14 @@ The version of CheckMyIP documented here is: **v1.0.0** ### TABLE OF CONTENTS ### 1. [What is CheckMyIP](#what-is-checkmyip) 2. [How to Use](#how-to-use) -3. [Install Process](#install-process) -4. [Using the API](#using-the-api) +3. [Using the API](#using-the-api) +4. [Install Process](#install-process) 5. [Contributing](#contributing) ----------------------------------------- ### WHAT IS CHECKMYIP ### -Everybody has used a service like [WhatIsMyIP.com](https://www.whatismyip.com/) before. If you are an IT engineer or even an amateur technology enthusiast, then you have probably had a reason to check to see your public IP address. This service works great when a browser is available, but at times it is not. We often find ourselves logged into a remote Linux machine or a network switch/router which has a command line and terminal clients (Telnet and SSH), but no browser. The CheckMyIP app and the [TelnetMyIP.com](telnet://telnetmyip.com/) and **SSHMyIP.com** public services were created with this in mind. +Everybody has used a service like [WhatIsMyIP.com](https://www.whatismyip.com/) before. If you are an IT engineer or even an amateur technology enthusiast, then you have probably had a reason to check to see your public IP address. This service works great when a browser is available, but at times it is not. We often find ourselves logged into a remote Linux machine or a network switch/router which has a command line and terminal clients (Telnet and SSH), but no browser. The CheckMyIP app and the **TelnetMyIP.com** and **SSHMyIP.com** public services were created with this in mind. ----------------------------------------- @@ -34,6 +34,20 @@ To enable the use of this service as a simple API, the response is formatted as **Note:** _The DNS records for_ `telnetmyip.com` _and_ `sshmyip.com` _point to the same services._ +----------------------------------------- +### USING THE API ### +The CheckMyIP code contains the `CheckMyIP_Client` class which is an API client example which can be used to query a CheckMyIP server (like telnetmyip.com). Below is an example of how you can use it. + +``` +from checkmyip import CheckMyIP_Client + +client = CheckMyIP_Client() +ipdict = client.get() +print("\nMy IP is %s\n" % ipdict["ip"]) +print("\nI used port number %s\n" % ipdict["port"]) +``` + + ----------------------------------------- ### INSTALL PROCESS ### If you would rather set up your own private instance of CheckMyIP, then you can follow the below instructions to set it up for yourself. @@ -146,19 +160,6 @@ service checkmyip status ``` ------------------------------------------ -### USING THE API ### -The CheckMyIP code contains the `CheckMyIP_Client` class which is an API client example which can be used to query a CheckMyIP server (like telnetmyip.com). Below is an example of how you can use it. - -``` -from checkmyip import CheckMyIP_Client - -client = CheckMyIP_Client() -ipdict = client.get() -print("\nMy IP is %s\n" % ipdict["ip"]) -print("\nI used port number %s\n" % ipdict["port"]) -``` - ----------------------------------------- ### CONTRIBUTING ### If you would like to help out by contributing code or reporting issues, please do!