From 37799af85ca2013e4e4ef79b72161885469df697 Mon Sep 17 00:00:00 2001 From: Henk Date: Tue, 23 May 2023 23:44:52 +0200 Subject: [PATCH] Show IP for localtunnel --- aiserver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aiserver.py b/aiserver.py index b045ea71..7b94e15e 100644 --- a/aiserver.py +++ b/aiserver.py @@ -11015,6 +11015,8 @@ def run(): if(koboldai_vars.host): 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 localtunnel = subprocess.Popen([shutil.which('lt'), '-p', str(port), 'http'], stdout=subprocess.PIPE) attempts = 0