Set up the ret addr and port settings