Force `port` to an int in case someone passes it as a string. Fixes #292