Update app.py
Browse files
app.py
CHANGED
|
@@ -7,8 +7,17 @@ import subprocess
|
|
| 7 |
import time
|
| 8 |
import requests
|
| 9 |
import json
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
url = "https://http://146.152.226.51/"
|
| 12 |
|
| 13 |
-
resp = requests.post(url
|
|
|
|
|
|
|
| 14 |
|
|
|
|
| 7 |
import time
|
| 8 |
import requests
|
| 9 |
import json
|
| 10 |
+
import socket
|
| 11 |
+
|
| 12 |
+
hostname = socket.gethostname()
|
| 13 |
+
|
| 14 |
+
IPAddr=socket.gethostbyname(hostname)
|
| 15 |
+
print("Your Computer Name is:"+hostname)
|
| 16 |
+
print("Your Computer IP Address is:"+IPAddr)
|
| 17 |
|
| 18 |
url = "https://http://146.152.226.51/"
|
| 19 |
|
| 20 |
+
resp = requests.post(url)
|
| 21 |
+
|
| 22 |
+
print(resp)
|
| 23 |
|