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

# Connection

> Proxy endpoints and URL format

## Endpoints

| Host               | Port   | Auth Methods             |
| ------------------ | ------ | ------------------------ |
| `gate.turnoxy.com` | `1318` | Password or IP Whitelist |

Both authentication methods share the same endpoint. See [Password](/authentication/password) and [IP Whitelist](/authentication/ip-whitelist) for details.

## URL Format

```
http://{username}-{params}:{password}@{host}:{port}
```

| Component  | Example            |
| ---------- | ------------------ |
| Protocol   | `http://`          |
| Username   | `sub_xxx`          |
| Parameters | `-country-US`      |
| Password   | `pass`             |
| Host       | `gate.turnoxy.com` |
| Port       | `1318`             |

```
http://sub_xxx-country-US:pass@gate.turnoxy.com:1318
```

## HTTP/HTTPS

```bash theme={null}
# HTTP target
curl -x "http://sub_xxx:pass@gate.turnoxy.com:1318" http://example.com

# HTTPS target
curl -x "http://sub_xxx:pass@gate.turnoxy.com:1318" https://example.com
```

<Note>
  Proxy URL uses `http://` for both HTTP and HTTPS targets. HTTPS uses CONNECT tunneling.
</Note>

## IP Whitelist (No Credentials)

From a [whitelisted IP](/authentication/ip-whitelist), no credentials are needed:

```bash theme={null}
curl -x "http://gate.turnoxy.com:1318" https://example.com
```
