Get port and ip from command line arguments