check for set internal_port