Skip to content

Commit 71dc689

Browse files
use hostname to get IPv4 address
1 parent 8b8aa8e commit 71dc689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import socket
1+
import os
22
from funs import *
33

44
######## VNC
5-
IPv4Address=socket.gethostbyname(socket.gethostname())
5+
IPv4Address=os.system("hostname -I | cut -d \" \" -f 2")
66
LOCALIP="127.0.0.1"
77

88
def vncokdialog(port):

0 commit comments

Comments
 (0)