express get request host and port 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;