Skip to content

running a lightsail $12 ubuntu 24.04 lts instance . Want to run marimo notebook on it but web link not working????

0

so marimo notebooks are installed and running so I should be able to

marimo tutorial intro

and get something like

 URL: http://localhost:2720?access_token=qQnXTqNbXFVpOgPo9ltxLQ

and I do BUT going to a remote machine and typing the PUBLIC ip address version ( for this question use 999.999.999.999) there is no connection and no message. so in firefox on a laptop I enter


 URL: http://999.999.999.999:2720?access_token=qQnXTqNbXFVpOgPo9ltxLQ

Anyone help PLEASE?? thank you

asked a year ago214 views

2 Answers
1

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:

  1. 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.
  2. 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
  3. 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.
  4. 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.
  5. Test connectivity using a tool like telnet or nc from 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

answered a year ago

EXPERT

reviewed a year ago

1

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

EXPERT

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.