I cloned my react app from git repository after installing nodejs and npm in the droplet. Once the cloning get finished I then executed the command “npm install”. After that tried to run the app using “npm start”. When opening the port 3000 as I use to do in my local machine. But while opening (ip_add:3000) the browser keeps loading and didn’t served the web page. How to make it run on port 3000, or tell me what sort of mistakes I had done. Provide me with suggestions. Thanks for the upcoming feedbacks.
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!
Hi @mayurkarmakar07,
It seems you haven’t opened port 3000 for external use. You’ll need to open it in order for you to be able to reach your application on the said port.
sudo ufw allow 3000
iptables -A INPUT -i eth0 -p tcp -m tcp --dport 3000 -j ACCEPT
Regards, KDSys
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.