how to get port number of current server express js request code example
Example: express get port from request
const proxyHost = req.headers["x-forwarded-host"];
const host ? proxyHost : req.headers.host;
const proxyHost = req.headers["x-forwarded-host"];
const host ? proxyHost : req.headers.host;