---
title: Specifying a custom hostname and port for your PingDirectory server
description: Specify a custom PingDirectory server hostname and HTTPS port in the Delegated Admin config.js file when the application is installed on a separate server.
component: pingdirectory
version: 11.1
page_id: pingdirectory:delegated_admin_application_guide:pd_da_specify_custom_hostname_port_dir_server
canonical_url: https://docs.pingidentity.com/pingdirectory/11.1/delegated_admin_application_guide/pd_da_specify_custom_hostname_port_dir_server.html
llms_txt: https://docs.pingidentity.com/pingdirectory/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: October 5, 2023
---

# Specifying a custom hostname and port for your PingDirectory server

If an application is installed on a separate server from your PingDirectory server instance, you must specify where the PingDirectory server instance is found within the Delegated Admin application's `config.js` file.

The `DS_HOST` configuration variable should match your PingDirectory server's hostname. The `DS_PORT` configuration variable should match your PingDirectory server's HTTPS port.

|   |                                                                                                                                                                              |
| - | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | You don't need to specify these variables if you're hosting the Delegated Admin application alongside your PingDirectory server instance, as described in previous sections. |
