1
0
mirror of synced 2026-01-05 12:07:35 -05:00
Files
docs/data/reusables/codespaces/find-address-and-token.md
2023-02-23 16:05:00 +00:00

24 lines
732 B
Markdown

### Finding the address to connect to
1. Open the terminal in your codespace.
1. Click the **PORTS** tab. This lists all of the ports you have forwarded.
1. Right-click the port you want to connect to and click **Copy Local Address**.
![Screenshot of the pop-up menu for a forwarded port with the "Copy Local Address" option highlighted with an orange outline.](/assets/images/help/codespaces/copy-local-address.png)
1. Paste the copied address somewhere for later use.
### Finding the GITHUB_TOKEN
1. In the terminal in your codespace, enter `echo $GITHUB_TOKEN`.
The token is a string beginning `ghu_`.
1. Copy the token.
{% note %}
**Important**: Don't share this access token with anyone.
{% endnote %}