---
title: "Changing Ports"
description: "Learn how to change default ports in TigerGraph. Note that default ports have changed since version 4.1."
component: "tigergraph-server"
version: "4.2"
module: "installation"
html_url: "/tigergraph-server/4.2/installation/change-port"
canonical_url: "https://www.tigergraph.com/docs/tigergraph-server/4.2/installation/change-port"
markdown_url: "https://www.tigergraph.com/docs/tigergraph-server/4.2/installation/change-port.md"
---

[View as HTML](https://www.tigergraph.com/docs/tigergraph-server/4.2/installation/change-port)

# Changing Ports

> [!NOTE]
> Starting with **TigerGraph 4.1**, port usage for REST API requests has changed.
> 
> * The **RESTPP service (port 9000)** is no longer publicly accessible.
> * Use the **GSQL server (port 14240)** for API requests on self-managed systems.
> * For **TigerGraph Cloud**, send API requests to **port 443**.
> 
> For more details, see the [REST API reference](https://www.tigergraph.com/docs/tigergraph-server/4.1/API/index.md).

The following ports apply to **TigerGraph versions earlier than 4.1**:

* **9000** – serves RESTPP, which accepts upstream TigerGraph Nginx requests.
* **14240** – serves TigerGraph Nginx.

If the above ports are restricted in your environment and cannot be enabled (for whatever reason) you can change them once TigerGraph is up and running by running the following commands as tigergraph user:

For changing port 9000 (RESTPP) to something else (e.g. 9090)

```bash
$ gadmin config set RESTPP.NginxPort 9090
$ gadmin config apply
$ gadmin restart
```

For changing the port 14240 (Nginx) to something else (e.g. 8080)

```bash
$ gadmin config set Nginx.Port 8080
$ gadmin config apply
$ gadmin restart
```
