Open a port for external users to connect to

Asked

Viewed 636 times

-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.

inserir a descrição da imagem aqui

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

inserir a descrição da imagem aqui

External network

inserir a descrição da imagem aqui

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?

  • 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.

  • 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.

  • Image is no good, You have to know manufacturer and model to search the manual..

1 answer

1


Good guys, I solved my problem, I managed to open a server on my network with remote access.

I contacted the provider of my internet and solved the problem (all the configuration I made on my router that is connected on the modem of the provider worked to a certain extent, however the modem did not allow remote connection to my network) because DMZ/Upnp is disabled by default, I resolved this with the company and they enabled this service, or better, enabled the configuration of the modem so that I could enable these services.

Thank you, and good night/afternoon or good day.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.