Allow port numbers passed to .bind() and .connect() to be strings