So I am having this remote machine, which is actually just a machine in the local network. I am running a Jupyter Notebook on that machine to which I was always able to access it via URL such as http://192.168.111.242/?token=asdfghjkl
However, lately this is not working for me and what I have to do is user port forwarding in order to make it work:
ssh -f username@name -L PORT:localhost:PORT -N
Otherwise, accessing http://192.168.111.242/?token=asdfghjkl will give me a ERR_CONNECTION_REFUSED
in my browser.
I don't quite understand why I have to forward the port here.
What could be the reason?
sudo ufw status
?