SillyTavern / SillyTavern

LLM Frontend for Power Users.
https://sillytavern.app
GNU Affero General Public License v3.0
8.57k stars 2.46k forks source link

[BUG] Remote connections outside the local network does not work #3125

Open pidori-ne-poluchat-parol opened 2 days ago

pidori-ne-poluchat-parol commented 2 days ago

Environment

🪟 Windows

System

Windows 11 & Android 14

Version

SillyTavern 1.12.7

Desktop Information

Node.js - v20.17.0 API - KoboldAI Horde Branch - release Model - no difference

Describe the problem

I want to use Remote connections via my cell phone. When I follow the connection instructions, it says at the end that in order to connect outside the local network, I have to write “http://[public IP]:[port]”. Ideally, it should open the same as if I opened on the local network. When I actually do this (the program is running on the computer, of course), the connection doesn't happen. It was tried on different mobile devices outside the local network, but no connection was achieved. Yes, “listen” is on. What surprises me is that I couldn't find a single question in the questions with this problem, because of this I thought it was me doing something wrong, but when I'm in my fourth week of trying to customize and all to no avail, I decided to ask directly.

Demonstrating that there is no connection: photo_2_2024-11-29_23-19-34 photo_3_2024-11-29_23-19-34 photo_1_2024-11-29_23-19-34

Part of the manual from the remote connection: image

Additional info

While trying to connect, the console does not output anything, as if it is not trying to connect to it. Connecting from mobile devices within the same LAN goes smoothly.

Please tick the boxes

Cohee1207 commented 2 days ago

This would only work if your ISP provides a public IP address, and you are not behind a NAT. If you use a router in a local network, you'd need to setup a port forwarding rule to forward a port from a router into a host machine. Just using your external IP address would not work.

pidori-ne-poluchat-parol commented 2 days ago

This would only work if your ISP provides a public IP address, and you are not behind a NAT. If you use a router in a local network, you'd need to setup a port forwarding rule to forward a port from a router into a host machine. Just using your external IP address would not work.

Hmm, I understand a little bit. In that case, could you suggest possible solutions if you don't have a hard time?

Cohee1207 commented 2 days ago

Try alternative methods of port exposure that don't require a public IP, such as cloudflared, localtunnel or ngrok. All are third-party services, I can't provide further support with them.

pidori-ne-poluchat-parol commented 2 days ago

Попробуйте альтернативные способы открытия портов, которые не требуют публичного IP-адреса, например cloudflared, localtunnel или ngrok. Все это сторонние сервисы, и я не могу оказать вам дальнейшую поддержку с их помощью.

I'll try them out and let you know what worked. For now, thank you for responding. I'll close the question when I give you feedback on what worked best.