S
S
Stanislav Nekrasov2018-06-28 16:28:23
Computer networks
Stanislav Nekrasov, 2018-06-28 16:28:23

How can I make it possible to get to my server using a white ip?

I have a problem. Today I bought a permanent white ip from an ISP. It seems that everything has changed and everything is fine. If I connect from the local network to the address AAA.BBB.CCC.DDD, then the router page (ZyXEL) appears. If I go to the same ip from a smartphone via 3G, then nothing opens for me. I created a test server in NodeJS.

var HTTP = new require("http");
var FS = new require('fs');
const HTML = FS.readFileSync('server.html', 'utf8');
HTTP.createServer(function (req, res) {
  res.writeHead(200, {"Content-Type": "text/html"});
  res.end(HTML);
}).listen(2000, "localhost", function () {console.log("Server started!")});

It seems to have set up NAT on port 2000, set the computer to a permanent gray ip. I'm trying to access the white ip: AAA.BBB.CCC.DDD:2000 and nothing is loading. What should be done? By the way, I again looked at the IP on the 2ip.ru website, now it has changed, and it is definitely mine.
NAT on the router:
5b34e503d4097112522399.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Griboks, 2018-06-28
@Griboks

Router: duplex address and port translation.
Server: duplex open port on the interface.
Your code: interface and port listening.
All this must be configured correctly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question