- Newest
- Most votes
- Most comments
The issue you're experiencing is likely related to network connectivity and security settings on your Lightsail instance. Here are a few steps you can take to troubleshoot and potentially resolve the problem:
-
Check your Lightsail instance's firewall settings:
- Ensure that the firewall (security group) allows incoming traffic on port 2720.
- You may need to add a custom rule to allow TCP traffic on this port.
-
Verify that the marimo notebook server is binding to the correct network interface:
- By default, it might be binding only to localhost (127.0.0.1), which won't be accessible from outside the instance.
- Try running the marimo server with the following command to bind it to all interfaces:
marimo tutorial intro --host 0.0.0.0
-
Check if there's any local firewall on the Ubuntu instance blocking incoming connections:
- You may need to configure ufw (Uncomplicated Firewall) to allow incoming traffic on port 2720.
-
Ensure that the Lightsail instance's public IP is correctly assigned and that there are no network issues:
- You can verify this from the Lightsail console.
-
Test connectivity using a tool like
telnetorncfrom your local machine to the Lightsail instance's public IP on port 2720.
If you've confirmed these settings and are still unable to connect, you may want to check the marimo server logs for any error messages or binding issues. Additionally, ensure that the marimo process is running and listening on the expected port using a command like netstat -tuln | grep 2720 on the Lightsail instance.
Remember to always be cautious when opening ports to the public internet, and consider using SSH tunneling or a VPN for added security when accessing your notebook server remotely.
Sources
Why can't I connect lightsail's website by using public ip | AWS re:Post
Hello.
Port 2720 is not open by default in Lightsail's firewall rules, so you will need to add settings to allow communication.
https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-firewall-rules-reference.html
Try adding a rule using the steps in the document below.
https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-editing-firewall-rules.html
