telnet localhost 3000 That should tell you if the ports unavailable at the TCP level, or whether something's going on at the HTTP level. Ping might not work if ICMP is disabled, which could be completely unrelated to your issue. Also, try looking in your hosts file for any redirections: c:\Windows\System32\drivers\etc\hosts
1. As @Deep Kakkar mentioned you don't set an api prefix so you should find /signup working instead of /api/signup. also fetch(/api/signup) will hit this relative path on your current domain (where react app is up on), you need to set full path instead, for instance, if your http-server is up on port 4000 and your react app is up on 3000 then ...
However, as I try to access the localhost:3000, it keeps refusing:"ERR_CONNECTION_REFUSED" I searched on the internet for solutions and tried opening ports by creating an inbound rule on security settings, turned IIS on, used 127.0.0.1 instead, and still get refused. Does anyone have any idea how to solve this? I am using Windows 10
Forward port 3000 in the router. Make sure port 3000 is forwarded to the Ubuntu server's internal IP address in the home router. This will allow anyone from outside the home LAN access the web server. The instructions are router specific and beyond the scope of this answer as it has nothing to do with Ubuntu.
I am new to node.js and I would like to learn if I could access the node.js port (3000) by writing the url of the index.html. I followed this tutorial to create a chat app, but I have the problem I
Given that the port is bind to any IP address other than 127.0.0.1 (localhost), you can access it from any other system. To view your IP addresses, use ipconfig (Windows) or ifconfig (Linux) command. Find out the IP which is in the same network as the"other system" from which you want access. Then access it like, for example: 172.16.0.12:3000.
As mentioned above, how to load my app at localhost:3000/home at the start and not localhost:3000. I usually just run npm start in console.
in browser history search for localhost:3000 and delete all of them. make sure you closed all terminalls (check vscode too) and all tabs in your browsers. in new widnows terminal npx kill-port 3000 do it in WSL2 terminall too. make sure your firewall is turn of. restart you computer.
7. In following the instructions to set up the server on the command line, install the dependencies, and navigate to localhost:3000. It seems that you didn't start the server. Somewhere between installing the dependencies and navigating to the URL you need to actually start the server if you want it to serve the request.
10. Localhost:3000 is the URL adress at which your web app (during development) is accessible if you started it (with a command in the console, like for example: npm start). Localhost means that it's your computer that is hosting the app, and it doesn't mean that it's accessible on other computers. 3000 is the port at which your web app is ...