Please choose how you got the application: Installer (Windows, Linux, macOS), cloud image (AWS, GCE, Azure, ...) or VM (VMDK, VBOX):
Have you installed any plugin or modified any configuration file?:
Describe here your question/suggestion/issue (expected and actual results):
I am forwarding port 3000 like this:
ssh -N -L 3000:127.0.0.1:3000 -i ./LightsailDefaultPrivateKey-us-east-1.pem firstname.lastname@example.org
I am running the app like this:
I tried opening the port like so:
$ sudo ufw allow 3000
Rules updated (v6)
And when I run this:
$ curl http://localhost:3000
<!DOCTYPE html><html><head><title>Express</title><link rel="stylesheet" href="/stylesheets/style.css"></head><body><h1>Express</h1><p>Welcome to Express</p></body></html>
I get this:
GET / 200 305.438 ms - 170
But I cannot access the app from http://123.456.789.0:3000 on my local machine
Edit: Just to clarify, I do not want to run my app out of port 80. I want to run my app out of port 3000.
Update: I got it loading the default page from localhost:3000, but I want to be able to access it from non-localhost. How do I do that?
Update: I changed the Firewall settings at "lightsail.aws.amazon.com" to include TCP 3000. Still not working.