Blueprint Adapter
Connect host migration to any backend you already use (Advanced Sessions, your own lobby service, a web API) without C++.
- Create a Blueprint class with parent Host Migration Adapter (Blueprint).
- Pick it in Project Settings → Plugins → Host Migration → Adapter Class.
- Override only what your backend can do.
Events to override
| Event | Needed for |
|---|---|
| Get Connect Address (Candidate) | Minimum. The address to reach a candidate once it hosts. Default: the IP the old host saw, plus Listen Port. |
| Get Local Host Address | The address others use to reach this machine while it hosts. |
| Publish Host Ready (Epoch, Num Players) | Announcements. Write this machine's address, epoch and player count to your lobby. |
| Clear Host Ready | Announcements. Remove what Publish Host Ready wrote. |
| Get Announced Hosts (out Hosts) | Announcements. Return every announced host and true. |
| Get Member Presence (Player Id) | Rejoin. Present, Gone or Unknown. |
| Publish Heartbeat (Beat) | Heartbeat. Write the number to your lobby. Called every 5 s while hosting. |
| Get Heartbeat (Player Id, out Beat) | Heartbeat. Read the number that player wrote and return true. Clients use it to notice a host that is still listed but no longer running. |
| Publish Host Loading (Epoch) | Loading. Write that this machine is loading the map as the successor for this epoch. |
| Is Candidate Loading (Candidate, Epoch) | Loading. True if that candidate wrote it is loading for this epoch. Clients then keep waiting up to Max Candidate Load Time. |
| Score Candidate (Player State) | Optional. Ranks successors, lower is better. Default: ping. |
| Is Candidate Available (Candidate) | Optional. False skips the candidate in the election. Default: not known to be gone. |
| Is Online | Optional. False fires On Host Connection Lost on the host. Default: true. |
| Can See Lobby | Optional. False when this machine cannot read the lobby; clients then connect to the candidate directly. Default: true. |
| Get Direct Connect Addresses (Candidate, out Addresses) | Optional. Addresses to try when Can See Lobby is false. Default: Get Connect Address. |
The plugin calls these events. You cannot call them from your own graph, so put anything you need in more than one place, such as this machine's address, in a function of your own.
Get Connect Address with a fixed port:

Publish Host Ready and Clear Host Ready writing to a lobby service. Set Backend Member Data and
Get My Address stand for your backend's own calls:

Get Announced Hosts reads them back as one Host Migration Announcement per host:
| Field | What to fill in |
|---|---|
| Host Key | Something unique per host, for example the player id. |
| Address | What this host wrote as its address. |
| Epoch | What this host wrote as its epoch. |
| Num Players | What this host wrote as its player count. |
Get Connect Address gets a Host Migration Candidate: Net Id (the player's unique net id), Ip Address (the IP the old host saw) and Score.
Levels of support
- Only Get Connect Address: like the Null adapter. Clients assume the successor is up after Assumed Host Delay.
- Plus announcements: waiting clients join the first host that announces, and two hosts at once are detected and resolved.
- Plus presence: a player whose connection drops while the host is still there rejoins the host instead of migrating.
- Plus heartbeat: a host that crashed but is still listed is noticed after Heartbeat Timeout (15 s) instead of when your backend drops it.
- Plus loading: clients keep waiting for a successor that is still loading a large map.
LAN fallback settings
The Null adapter defines these defaults. To customize them in Blueprint, open your Host Migration Adapter (Blueprint) subclass, edit Class Defaults > Host Migration, then select that class in Project Settings > Plugins > Host Migration > Adapter Class.
| Setting | Default | When it applies |
|---|---|---|
Listen Port (ListenPort) | 7777 | The default Get Connect Address appends this port to the candidate IP. Match it to the port the successor actually listens on when using direct IP connections. |
Assumed Host Delay (AssumedHostDelay) | 4 s | How long the Null adapter waits before trying the candidate's address. The Blueprint adapter uses this fallback when Get Announced Hosts returns false. Return true with an empty list when the announcement channel is available but no host has announced. |
Take Over Session (bTakeOverSession) | on | Lets the native Null adapter recreate the LAN GameSession on the successor with OnlineSubsystem Null. The Blueprint adapter inherits this behavior through the default Publish Host Ready implementation. If you override that event, call its parent to keep the LAN takeover. |
Calls
| Node | What it does |
|---|---|
| Announce Host (Host Id, Address, Epoch) | If your backend pushes events, call this when a host announcement arrives. |
| Refresh Host Announcement | Your backend became usable after hosting started (e.g. the lobby was joined late). Publishes again. |
| Get Migration Subsystem | The subsystem this adapter works for. |
The adapter has a world, so world-context nodes work inside it.