Ok, I have searched for hours on this, nothing is working the way it should so I have to be doing something wrong. It works fine on localhost:port but I can't get it to work remotely.
Here is the app.js
var http = require('http');
var express = require('express');
var app = express();
app.set('view engine', 'jade');
app.set('views', './views');
app.get('/', function(req, res) {
res.render('index', {title: 'Welcome', message: 'Hello ExpressJS!'});
});
app.listen(3000);
console.log('Running Express...');
Here is my port fowarding configuration:
Name: HTTP
Service Type: TCP
External Starting Port: 80
External Ending Port: 80
Use the same port range for Internal Port: [Checked]
Internal IP Address: 192.168.1.11 (This is the pc I want to use)
DNS Configuration
Name: Blank Type: A TTL: 300 Target: My Ip Address
Name: WWW Type: A TTL: 300 Target: My Ip Address
If I use the www.mydomain.com I get nothing, If I use my IP address still nothing. I unchecked Use same internal port, from the port forwarding and entered 3000 but it didn't do anything either, kept causing errors.
How can I make my node js server public?
Error: listen EACCES 0.0.0.0:80and I believe that means it can't run on that port. I don't think I have any server running or anything running on port 80 besides the app.js. – Seva Aug 18 '17 at 07:56http://xxx.yyy.zzz:3000? For method 3, the EACCES error is probably because you need elevated privileges to run a server on port 80 (on Linux). – jfriend00 Aug 18 '17 at 07:58http://myip. – jfriend00 Aug 18 '17 at 08:13