---
title: "Find Your Bambu Lab Access Code and IP Address · Bambu Bar"
description: "Where to find your Bambu Lab printer's access code and IP address on its screen, how to use them to connect from a Mac, and what to do when the code changes."
url: https://bambubar.app/guides/bambu-lab-access-code
language: en
---

# Your access code and IP address

Apps that talk to a Bambu Lab printer on your network need two things: its access code, and sometimes its IP address. Both are on the printer's screen.

_Updated 2026-11-03_

## In short

Both are on the printer's screen, in its network settings:

- **X1, H2 and P2S:** **Settings → LAN Only** (or **Network**).
- **P1P and P1S:** **Settings → WLAN**.
- **A1, A1 mini and A2L:** in **Settings**, on the **LAN Only Mode** or network page.

The **access code** is 8 characters. The **IP address** is the printer's address on your network, like 192.168.1.42. Menu names vary with firmware.

## The access code

The access code is the printer's password for local connections. Bambu Studio, OrcaSlicer and Bambu Bar use it to sign in to the printer on your network, in cloud mode and in LAN Only mode alike.

Treat it like a password: anyone on your network with the code can read the printer's status, and with Developer Mode on, control it. Don't post it in forums or screenshots, and never type it into a website.

## The IP address

The IP address is where the printer is on your network. You need it when an app can't find the printer on its own, for example across a mesh network or when discovery is blocked. Besides the printer's screen, your router's list of connected devices shows it.

If the address keeps changing, give the printer a fixed one with a **DHCP reservation** in your router's settings.

## Use them in Bambu Bar

Usually you don't type either:

- Bambu Bar **finds printers** on your network by the announcements they send.
- If **Bambu Studio or OrcaSlicer** on your Mac has used the printer, Bambu Bar reads the access code they saved. It only reads their settings, never changes them. The Mac App Store version asks you to choose the slicer's folder once.
- Slicer on another Mac? Drop that Mac's `BambuStudio.conf` onto the setup page.

Otherwise:

1. Choose **Enter address manually** and type the IP address from the printer's screen. Bambu Bar reads the serial number from the printer.
2. Type the 8-character access code.
3. Click **Connect**.

Bambu Bar stores the code in your macOS keychain and only ever sends it to that printer, over an encrypted connection that checks the printer's certificate. Removing the printer deletes the code from the keychain. See the [privacy policy](https://bambubar.app/privacy).

## When the code changes

The access code changes after a factory reset, and when it's renewed on the printer. Apps then show **Access code rejected** or can't connect:

1. Read the new code on the printer's screen.
2. Enter it in Bambu Studio and in Bambu Bar. If your slicer already has the new code, Bambu Bar offers to use it.

If the printer got a new IP address instead, Bambu Bar follows it on its own, from the printer's announcements.

## Still can't connect?

The code and address are only part of it: the Mac and the printer must be on the same network, and macOS must allow local network access. See [Bambu Studio not connecting](https://bambubar.app/guides/bambu-studio-not-connecting-printer) and [getting started](https://bambubar.app/support/getting-started).

## Questions, answered

### Where is the access code on a Bambu Lab P1S?

On the printer's screen under **Settings → WLAN**, next to the LAN Only Mode option.

### Where is the access code on an X1 Carbon or H2D?

On the printer's screen under **Settings → LAN Only** (on some firmware, **Settings → Network**), with LAN Only Liveview and Developer Mode.

### Does the access code change?

It changes after a factory reset and when it's renewed on the printer. Enter the new one in your apps.

### Is it safe to give the access code to Bambu Bar?

Bambu Bar keeps it in your macOS keychain and sends it only to that printer, after checking the printer's certificate. Nothing goes to a server.

## Read next

- [Getting started](https://bambubar.app/support/getting-started): From download to your printer in the menu bar: requirements, installing, connecting, and the optional camera, controls and widgets.
- [Bambu Studio not connecting](https://bambubar.app/guides/bambu-studio-not-connecting-printer): Printer missing from Bambu Studio, offline, or failing to connect on a Mac: the checks, in the order that finds the problem fastest.
- [LAN mode explained](https://bambubar.app/guides/bambu-lab-lan-mode): Cloud mode, LAN Only, LAN Only Liveview and Developer Mode: four different settings, and which ones you actually need.
- [Privacy: Local Printer Data and Website Analytics](https://bambubar.app/privacy): How Bambu Bar handles local printer data, access codes, camera viewing, supporter licenses and website analytics.

---

Bambu Bar is an independent app, not affiliated with or endorsed by Bambu Lab. Bambu Lab is a trademark of its owner.
