By MapleMeese
the code right now on the droplet is const io = require('socket.io')(8080). When I ran this on my pc, it would be on localhost:8080. How would I access this, now that it’s runnin on the droplet? I’ve tried dropletip:8080, but that doesn’t work
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!
After the droplet is created you will get a static IP. Depending on your OS you(nginx, apache) you will need to proxy those requests to the running node server 80 --> 8080
Nginx would act as the LB in this case to proxy connections to the running application on said port
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.