Fixed a mistake where port 0 was possible