---
title: "How to configure Hot Standby Gateways with different ports on different servers"
description: "Configuring Hot Standby Gateways with different ports requires disabling the Listen Port setting. The process involves modifying start scripts with the -port flag and transferring setup files between servers."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004021585-geneos-how-to-configure-hot-standby-gateways-with-different-ports-on-different-servers/index.html"
---
1. **Ensure that the Listen Port setting in the Operating Environment section is not enabled.** 2. **Ensure that the Gateway is started with the *-port* flag.**
Steps as follows:

1. Install the Primary Gateway 2. Modify the Primary Gateway's start script to include the *-port* flag. For example:
-

```
## Execute the binary cd tickets/${GW_DIR} ./gateway2.linux_64 -setup ${SETUP_DIR} -log ${GW_LOG} -port 10702 &
```

3. Start the Primary Gateway process 4. Access the Primary gateway's configuration via the GSE 5. Go to the Hot Standby section 6. Fill up the section. For example:

- ![Screenshot](https://docscdn.itrsgroup.com/faq/images/geneos/115004021585-inline-1-mceclip1.png) 7. Go to the Operating Environment section 8. Disable the Listen Port setting. For example:

- ![Screenshot](https://docscdn.itrsgroup.com/faq/images/geneos/115004021585-inline-2-mceclip0.png)

- The Listen Port setting is grayed-out when disabled.

9. Save the configuration

10. Transfer the Primary Gateway's setup file (e.g. gateway.setup.xml) to the Secondary Gateway's server

11. Install the Secondary Gateway

12. Modify the Secondary Gateway's start script to
1. use the Primary Gateway's setup file
2. include the *-port* flag. For example:
-

```
## Execute the binary cd tickets/${GW_DIR} ./gateway2.linux_64 -setup ${SETUP_DIR} -log ${GW_LOG} -port 10703 &
```

13. Start the Secondary Gateway process


