Good day everyone. I'm running an Ubuntu desktop 22.04. I'm new to linux world for about a month or so.
I already configure my router for port forwarding.
When I was developing this web app in windows, I got no problem with accessing it via public IP with just configuring my router. I run the web server using nodejs and it's on port 3000.
I could access the web page in my localhost or any computer in my local network just by typing
192.168.1.200:3000 but not
18.104.22.168:3000 - an example public IP.
When I run the server.
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
This is my ufw configuration.
I dont know if this would help but I'll post this anyway.
What I would want to achieve is to show the develop web app to my client. Is there any way to do this? Thanks in advance!
Steps I did so far to achieve this and after following @user68186 answer:
- start my web server at port 80 with
- forward my external and internal IP port to 80 in my router since setting my external IP to port 80 and running my web server at 3000
and setting internal PORT to 3000 will not do the trick.
Follow up question:
Is there some configuration needed to achieve forwarding external IP routes from port 80 to port 3000 with
22.214.171.124 external IP forwarded to
192.168.1.200:3000 internal IP. Thanks much!