qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java
public String findAdminPort() {

        String qbitAdminPort = System.getenv("QBIT_ADMIN_PORT");

        if (Str.isEmpty(qbitAdminPort)) {
            qbitAdminPort = System.getenv("ADMIN_PORT");
        }

        /* Uses PORT1 for admin port for Mesosphere / Heroku like environments. */
        if (Str.isEmpty(qbitAdminPort)) {
            qbitAdminPort = System.getenv("PORT1");
        }
        return qbitAdminPort;
    }
public String findAdminPort() {

        String qbitAdminPort = System.getenv("QBIT_ADMIN_PORT");

        if (Str.isEmpty(qbitAdminPort)) {
            qbitAdminPort = System.getenv("ADMIN_PORT");
        }

        /* Uses PORT1 for admin port for Mesosphere / Heroku like environments. */
        if (Str.isEmpty(qbitAdminPort)) {
            qbitAdminPort = System.getenv("PORT1");
        }
        return qbitAdminPort;
    }
Finds the admin port.
Searches  under environment variables,
{@code QBIT_ADMIN_PORT}, {@code ADMIN_PORT}, {@code PORT1}.

@return admin port