Hello community,
I had a pre server install nodejs and npm after. I hand installed a lamp server on it. But I would like to run apps which require node.js
Would like to access to https://peopleandchat.org:3000 it will not load anything.
Any ideas how I can get this to work correctly? using socket.IO chat.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Look very closely at jtittle1 's answer. I wasted a whole day on this because my ports were misconfigured between localhost, ‘127.0.0.1’ and not having any host in my express js server. Instead of
app.listen(port, () =>
it should be
app.listen(port, hostname, ()=>
This comment has been deleted
It really depends on what IP you’re using to start the server for the app.
If you use localhost or 127.0.0.1, you won’t be able to access the app via port using your domain as only local access is being permitted.
You’d need to use 0.0.0.0 as the IP, or configure Apache to proxy all requests on port 80 to the local address and port your running the application on.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.