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

# Retrieve public URLs for Exposed Ports

> Retrieve all public HTTPS URLs for exposed sandbox ports (3000, 1337, 1338).

The `getPublicUrls()` method returns all available **public HTTPS endpoints** for your sandbox container in a single object. By default, Fermion automatically exposes ports **3000**, **1337**, and **1338**, each corresponding to its own unique public URL.

### `getPublicUrls()`

**Description:**
Returns all available public URLs for the sandbox (ports 3000, 1337, 1338).

**Parameters:**
None

**Returns:**

```typescript theme={null}
{
  3000: string  // https://{subdomain}-3000.run-code.com
  1337: string  // https://{subdomain}-1337.run-code.com
  1338: string  // https://{subdomain}-1338.run-code.com
}
```

**Example:**

```typescript theme={null}
const urls = sandbox.getPublicUrls()

console.log('Available URLs:')
console.log('Port 3000:', urls[3000])
console.log('Port 1337:', urls[1337])
console.log('Port 1338:', urls[1338])

// Use in application
const config = {
  webUrl: urls[3000],
  apiUrl: urls[1337],
  socketUrl: urls[1338]
}
```
