Publish NodeJS Server Online

0 votes

I'm having trouble port forwarding my modem to my Node.js server right now. I apologise if this is a repeat question; I've spent some time researching familiar themes.

I'm using the express framework, and I've attached a little clip to show you what port the node is listening on.

The js server is also listening.

(Quick Question: Do I use server.listen or app.listen in this situation? What's the difference?)

var express = require('express');
var app = express();
var server = require('http').Server(app);

app.listen(4000);

I've also attached a photo that includes:

The node.js server is up and running, as well as ipconfig (to show my local IP address) and a screenshot of the port forwarding settings on my modems.

image

When I google "What is my IP Address" and get my public IP address, I get an error message on my browser that says the server took too long to answer. I'm guessing the server isn't being port forwarded, but I can't seem to pin down the problem.

I'd be grateful for any assistance.

Jun 21, 2022 in Node-js by Vaani
• 7,070 points
583 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Node-js

0 votes
1 answer

Making POST request to discord server in nodejs

You'll need to solve the captchas; I ...READ MORE

answered May 30, 2022 in Node-js by Vaani
• 7,070 points
1,243 views
0 votes
1 answer

Online java coding test: compile submitted java code in nodejs

Given that the user's source code will ...READ MORE

answered Jun 13, 2022 in Node-js by Neha
• 9,020 points
892 views
0 votes
1 answer

Download a file from NodeJS Server using Express

Because the file's name is just 'download' ...READ MORE

answered Jun 13, 2022 in Node-js by Neha
• 9,020 points
7,626 views
0 votes
1 answer

Extend SchemaDirectiveVisitor To Use Apollo Server Schema Directives in NodeJS

Because the ApolloServer class lacks a SchemaDirectiveVisitor ...READ MORE

answered Jun 17, 2022 in Node-js by Neha
• 9,020 points
866 views
0 votes
1 answer

nodejs mysql Error: Connection lost The server closed the connection

Try to use this code to handle server disconnect: var ...READ MORE

answered Jun 17, 2022 in Node-js by Neha
• 9,020 points
11,474 views
0 votes
1 answer

How do I “include” functions from my other files in nodejs?

Hello @kartik, You require any js file,so you just ...READ MORE

answered Jul 9, 2020 in Node-js by Niroj
• 82,840 points
3,445 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,942 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,468 views
+1 vote
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,459 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP