qgao007 commited on
Commit
4badeb6
1 Parent(s): 99d7a6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
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, data=json.dumps(data))
 
 
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