Where is `port` defined?  Did you mean to do `url.host` and `url.port`?