Problemi con accesso app in locale e remoto

Good evening, I am writing to you because I have a problem regarding the jellyfin app for Android version 2.0.1 The problem lies in accessing the server locally and remotely. Jellyfin is installed on windows. The problem is the following, when I connect with my mobile phone to the server locally everything is fine but when I connect remotely it no longer works and vice versa, a page appears with the message "Unable to load the requested web page at the address Local IP because net: err address unreachable How can I fix this? Thanks