Updated README

This commit is contained in:
John W Kerns 2017-09-02 00:06:31 -07:00
parent e248348cb5
commit 6a78dcbb28

View file

@ -29,7 +29,11 @@ To enable the use of this service as a simple API, the response to queries is fo
-----------------------------------------
### INSTALL PROCESS ###
Change Linux SSH Port to TCP222 and reboot
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.
Change Linux SSH Port to TCP 222 and reboot
```
sudo sed -i --follow-symlinks 's/#Port 22/Port 222/g' /etc/ssh/sshd_config
@ -145,8 +149,8 @@ from checkmyip import CheckMyIP_Client
client = CheckMyIP_Client()
ipdict = client.get()
print("My IP is %s" % ipdict["ip"])
print("I used port number %s" % ipdict["port"])
print("\nMy IP is %s\n" % ipdict["ip"])
print("\nI used port number %s\n" % ipdict["port"])
```
-----------------------------------------