Version and port cmdline arguments, courtesy of Phiho Hoang.