This is my backend code.
var port = normalizePort(process.env.PORT || '3009');
app.set('port', port);
var server = http.createServer(app);
const ip ='198.168.0.132'
server.listen(port, ip ,()=>{
console.log(`Server running on ${ip}:${port}`);
});
I also tried with port 0.0.0.0 but didn't work. I also create a firewall inbound rule to accessed by everyone connected to LAN.
I am checking it on postman the result it not shows the desired result. Result on postman with my ip address
But when I do it with localhost:3009, I get the desired data. So how I run my api/backend with my ip address.