getopt for port and configuration file