> ## 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 the IP Address in Pickcel On-Premise Setup

> Learn how to update the IP address for your on-premise Pickcel deployment by modifying configuration files

To update the IP address for your on-premise Pickcel deployment, you need to modify two files and then restart the server. 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 the nano editor (or vi, whichever you are using): In this example: `nano .env`
  </Step>

  <Step title="Update IP address">
    Locate the following lines and replace the existing IP address with the new one:

    <Frame>
      <img src="https://mintcdn.com/pickcel-92c6a68f/8A2hKhu1ROcLClot/images/on-premise/change-ip-address-on-premise-1.jpg?fit=max&auto=format&n=8A2hKhu1ROcLClot&q=85&s=0a3da0f6888b72541c64b6886e24b1a5" alt="Update IP address in .env file" width="1853" height="1042" data-path="images/on-premise/change-ip-address-on-premise-1.jpg" />
    </Frame>

    ```bash theme={null}
    SERVER_NAME=your.new.ip.address
    PICKCEL_SERVER_HOST=http://<your.new.ip.address>
    ```
  </Step>

  <Step title="Save the file">
    After making the changes, save the file: Press <kbd>Ctrl</kbd> + <kbd>X</kbd>, then <kbd>Y</kbd>, then <kbd>Enter</kbd>.
  </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 IP address and save">
    Scroll to the bottom of the file and update the IP address where it's mentioned. Save and exit by pressing: <kbd>Ctrl</kbd> + <kbd>X</kbd>, then <kbd>Y</kbd>, then <kbd>Enter</kbd>
  </Step>
</Steps>

## Restart the Server

Run the following commands to restart your Pickcel server with the new configuration:

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

After the restart, your Pickcel server will be accessible using the new IP address.

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