[Solved] problems with node.js and requests? [closed]


1)

req.baseUrl

or maybe just req.url, the best way to know it is:

console.log(request)

inside your function, and then you will see the request object

2)
To access your node serve you must be on the sabe network to ‘see’ the server. That means that if your server is running in your computer at home, only computers in your network can reach the server. (You could ‘open’ your local network to the internet but I think that is not what you are looking for)

You can also host your server on the internet and, of course, anyone could reach the server.

2

solved problems with node.js and requests? [closed]