mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Show IP for localtunnel
This commit is contained in:
@@ -11015,6 +11015,8 @@ def run():
|
|||||||
|
|
||||||
if(koboldai_vars.host):
|
if(koboldai_vars.host):
|
||||||
if(args.localtunnel):
|
if(args.localtunnel):
|
||||||
|
public_ip = requests.get("https://ipv4.icanhazip.com/")
|
||||||
|
logger.message(f"The Public IP of this machine is : {public_ip.text}")
|
||||||
import subprocess, shutil
|
import subprocess, shutil
|
||||||
localtunnel = subprocess.Popen([shutil.which('lt'), '-p', str(port), 'http'], stdout=subprocess.PIPE)
|
localtunnel = subprocess.Popen([shutil.which('lt'), '-p', str(port), 'http'], stdout=subprocess.PIPE)
|
||||||
attempts = 0
|
attempts = 0
|
||||||
|
Reference in New Issue
Block a user