CyberPanel Community

Cannot Access Express.js Website

MH
Mushood Hanif #1

Hi, im new to hosting websites on VPS servers and i tried hosting my node.js API on my hostinger VPS server using the tutorial on the following link: Setup Express.js Application on CyberPanel/OpenLiteSpeed - Blog Posts - CyberPanel Community

In this tutorial, app.js is created on port 3000 with the output “Example app listening on Port 3000”. I want to be able to confirm whether my api is online. Also, i want the link where i can see the app.js file output.

4 replies
ha
hamin #2

You want t open on port 3000 make sure port will be enable and configurations will be done according to that and no other process will taking it

ND
Nicolas Darquea #4

hi @mushood yo can open your ports on Firewall from cyberpanel, but if you are using websocket on your api, will wont work, I’m tring to firegureout how to solve this.

Ta
Tafadzwa #5

@mushood What worked for me was dockerising the Express.js Website and then uploading it as a docker container on Cyberpanel. Works best for me

Sign in to reply