Often web server access to remote devices behind a firewall is needed (Wifi router, smart home). This is how you can solve this securely.
This is how to access Raspberry Pi shell over the internet using any web browser from anywhere worldwide. 5 minute guide!