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 in Node-js by Vaani
• 7,020 points
7 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 in Node-js by Vaani
• 7,020 points
15 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 in Node-js by Neha
• 8,560 points
15 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 in Node-js by Neha
• 8,560 points
15 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 in Node-js by Neha
• 8,560 points
8 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 in Node-js by Neha
• 8,560 points
56 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,720 points
1,488 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
970 views
0 votes
1 answer
0 votes
1 answer

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

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

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