Make port numbers optional