Add new httpports function