> For the complete documentation index, see [llms.txt](https://docs.hivel.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hivel.ai/integrations/version-control/gitlab/gitlab-server-integration/how-to-find-your-gitlab-server-url.md).

# How to Find Your GitLab Server URL?

This guide explains how to locate the base URL of your GitLab instance for configuring developer tools, CI/CD runners, or API integrations.

### Method 1: Via the Web Browser (Simplest)

If you can access the GitLab web interface, the simplest way to find the server URL is directly from your browser.

1. Open your **GitLab dashboard** or any project page.
2. Look at the URL in the **address bar**.
3. The server URL is the base address of your GitLab instance.
   * **Example:** If the address is `https://company.com/group/project`, the server URL is **`https://company.com`**.

### Method 2: Via Server Configuration (Administrators Only)

If you have SSH access to the self-hosted GitLab server, you can verify the configured instance URL.

1. SSH into your GitLab host server.
2. Open the main GitLab configuration file:

   ```bash
   sudo nano /etc/gitlab/gitlab.rb
   ```
3. Locate the **`external_url`** parameter. The value configured here is the official GitLab instance URL.

   **Example:**

   ```ruby
   external_url 'https://gitlab.company.com'
   ```

   The server URL is **`https://gitlab.company.com`**.

### Method 3: Via a Cloned Git Repository

If you have already cloned a GitLab project to your local machine, you can identify the server URL from the repository's remote configuration.

1. Open your terminal or command prompt.
2. Navigate to your local project folder:

   ```bash
   cd /path/to/your/repo
   ```
3. Run:

   ```bash
   git remote -v
   ```
4. Examine the remote URL in the output:
   * **HTTPS:** `https://example.com/group/project.git` → Server URL: `https://example.com`
   * **SSH:** `git@example.com:group/project.git` → Server URL: `https://example.com`
