Enabling incoming connections allows you to access your Deepnote cloud machine from the web. You can use this to connect to popular tools such as Tensorboard or Streamlit, which depend on using a local webserver to access their interfaces (they often prompt you to open an address like
http://localhost:8080 in your browser to start using them).
When you enable incoming connections, Deepnote exposes port
8080 on the internet under an address such as
b9d13315-f12a-4931-857c-ed6b4c59dcad.deepnoteproject.com. You can use this address to access services running on the port
8080 on your Deepnote machine.
# Example http connection you can paste into your cell!python -m http.server 8080
Right now we only support exposing port 8080. To expose other ports, you can either reconfigure your tool, or use utilities like
socat which can forward traffic from port 8080 to the port your choosing. You can use the example below to set up port forwarding with
socat in the terminal:
apt update && apt install socatsocat tcp-l:8080,fork,reuseaddr tcp:127.0.0.1:YOUR_PORT