I have a remote laptop and a local laptop. I want to remotely access the resources on the remote laptop via Jupyter Lab programming interface. There are 2 problems needed to be solved:
- The remote laptop is behind a NAT hence does not have a public IP address. I need to do NAT traversal.
- I have to establish a Jupyter Lab server that respond to remote requests.
After some searching, I have
- changed the
jupyter_notebook_config.pyfrom this answer. - used npm package localtunnel to do NAT traversal, i.e. to forward all requests to a provided url to a specified port the remote laptop. Specifically, I run this command
lt --port 8888, where 8888 is the port that Jupyter Lab runs on.
However when I open the url provided by localtunnel, I get 404. I want to know are there better and simpler solutions? or how can I make my method work?