You have to retrieve it from the [`HOST` header](http://stackoverflow.com/a/247026). var host = req.get('host'); It is optional with HTTP 1.0, but required by 1.1. And, the app can always impose a requirement of its own.