A
A
Alexander Buki2018-12-04 16:07:29
network hardware
Alexander Buki, 2018-12-04 16:07:29

How to set up a local server and dd-wrt router so that external post requests can be made?

Created a node js server using the express module.

const express = require('express');
const app = express();
const port = 3000;

app.listen(port, ()=>{
    console.log('we are live on port '+port)
});

   app.post('/',(req, res)=>{
            res.send('hello');
    })

I want to make a post request on an external port (see screenshot)
5c067b3538440037263445.jpeg
As I understand it, for this you need to forward ports on the router:
5c067b899aa62398814373.jpeg
As a result, no response to the request.
Please tell me how to properly configure the server for requests from outside through the router.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Bay, 2018-12-04
@kawabanga

And why does your router have an address - 10.124.50.28
And you make a request to a different address?
IP white?

D
de1m, 2018-12-04
@de1m

And you are making a request in postman from the same computer, where is the page spinning?
So in my opinion it will not work, in any case, it didn’t work for me on a large firewall (shorewall) until I did SNAT. And if it doesn’t work from another computer, then you need to check everything one by one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question