> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pickcel.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Change Pickcel On-Premise Server from IP Address to Domain Name

> Learn how to migrate your Pickcel on-premise deployment from IP address to domain name

If you're migrating your Pickcel on-premise deployment to use a domain name instead of an IP address, follow the steps below:

## Edit the `.env` File

<Steps>
  <Step title="Log in to server and open .env file">
    Log in to your server terminal. Open the `.env` file using nano (or Vi): In this example: `nano .env`
  </Step>

  <Step title="Update domain name">
    Find and update the following fields with your domain name:

    ```bash theme={null}
    SERVER_NAME=your.domain.com
    PICKCEL_SERVER_HOST=http://your.domain_name.com
    ```

    <Frame>
      <img src="https://mintcdn.com/pickcel-92c6a68f/8A2hKhu1ROcLClot/images/on-premise/set-domain-name-on-premise-1.jpg?fit=max&auto=format&n=8A2hKhu1ROcLClot&q=85&s=99df250440b80b761b11f77e30879638" alt="Update domain name in .env file" width="1853" height="1042" data-path="images/on-premise/set-domain-name-on-premise-1.jpg" />
    </Frame>
  </Step>

  <Step title="Save the file">
    After making the changes, save the file: Press `Ctrl + X`, then press `Shift + S` to save and exit.
  </Step>
</Steps>

## Update the NGINX Configuration

<Steps>
  <Step title="Open NGINX config file">
    Open the NGINX config file: `nano nginx/nginx.conf`
  </Step>

  <Step title="Update domain name and save">
    Scroll to the bottom and replace the existing server name or IP with your new domain name. Save and exit: Press `Ctrl + X`, then `Shift + S`
  </Step>
</Steps>

## Restart the Server

Apply the changes by restarting the Docker containers:

```bash theme={null}
sudo docker compose down
sudo docker compose up -d --build
```

Your Pickcel server should now be accessible via your domain name.

<Info>
  Should you encounter difficulties, please contact support at [contact@pickcel.com](mailto:contact@pickcel.com) for assistance.
</Info>
