forked from BSDCafe/checkmyip
Updated README
This commit is contained in:
parent
e248348cb5
commit
6a78dcbb28
1 changed files with 7 additions and 3 deletions
10
README.md
10
README.md
|
@ -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"])
|
||||
```
|
||||
|
||||
-----------------------------------------
|
||||
|
|
Loading…
Reference in a new issue