-1
Hello,
I made an example code in Node Js with express to open a virtual server, as shown below:
const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => {
res.status(200).json({ok : true});
})
app.use(express.json())
app.use(express.urlencoded({extended: false}))
app.listen(port, () => {
console.log("Inicializado na porta " + port)
})
My goal would be to leave the door 3000 opened for other external computers to enter this server.
My Internet plan is dynamic and so I used a DDNS service to redirect a domain to my external IP.
I have enabled the door 3000 on the virtual servers of my router and also on the firewall of the machine that hosts the server.
I’ve cleared the area DMZ and insert the static IP of the computer on which the server is running.
Okay, I believe that the access was to be working at this time, I even with you, but only by the local network and when I try on an external network, I get the following error: ERR_CONECTION_TIME_OUT
This is my modem:
Local network
External network
If anyone knows what is happening, I would be very grateful if you would help me in the comments. Thank you!
In directing ports where is IP address would not be the address of the local machine, ip within your network, where is hosted the server Node.js?
– Augusto Vasques
Augustovasques Yes, this IP address 192.168.0.100 which has been inserted is that of the machine on which the nodejs server is hosted. And this IP is reserved only for this machine.
– Sydo
What is the model and make of the modem? PS: The question is outside our scope and will probably be closed, but this does not prevent a solution to be obtained here along with the comments.
– Augusto Vasques
Image is no good, You have to know manufacturer and model to search the manual..
– Augusto Vasques