Updated README
This commit is contained in:
parent
e248348cb5
commit
6a78dcbb28
1 changed files with 7 additions and 3 deletions
|
@ -29,6 +29,10 @@ To enable the use of this service as a simple API, the response to queries is fo
|
|||
|
||||
-----------------------------------------
|
||||
### 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.
|
||||
|
||||
|
||||
|
||||
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"])
|
||||
```
|
||||
|
||||
-----------------------------------------
|
||||
|
|
Loading…
Reference in a new issue