[GH-ISSUE #2211] WiFi to Cell Network Roaming Issue #4632

Closed
opened 2026-08-05 00:58:51 -04:00 by saavagebueno · 4 comments
Owner

Originally created by @ramphex on GitHub (Jun 27, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/2211

Describe the problem
When leaving a WiFi network and going over to a cell network, or leaving a cell network and going to a WiFi network, all of the peer connections drop and do not reconnect without a manual change of server, resetting the settings, and adding a new device to the dashboard. Dashboard shows the device connected the entire time despite it not being able to connect to any peers.

To Reproduce
Connect to NetBird while on WiFi, turn off WiFi. All peer connections drop and don't reconnect. Dashboard shows connected.
Connect to NetBird while on Cell, turn on WiFi. Rinse and repeat.

Steps to reproduce the behavior:
See above.

Expected behavior
Seamless transition.

A clear and concise description of what you expected to happen.
Seamlessly switch over

Are you using NetBird Cloud?
No

Please specify whether you use NetBird Cloud or self-host NetBird's control plane.
Self-hosted

NetBird version
Latest client on iOS
0.28.3 server

Add any other context about the problem here.

Logs indicate this:

signal_1 | 2024-06-27T19:49:43Z WARN signal/peer/peer.go:78: peer [qwerty] is already registered [new streamID 1719517783484202362, previous StreamID 1719517737207506376]. Will override stream.
signal_1 | 2024-06-27T19:49:43Z INFO signal/server/signal.go:110: peer connected [qwerty] [streamID 1719517783484202362]
signal_1 | 2024-06-27T19:49:57Z INFO signal/server/signal.go:95: peer disconnected [qwerty] [streamID 1719517737207506376]
signal_1 | 2024-06-27T19:49:57Z WARN signal/peer/peer.go💯 attempted to remove newer registered stream of a peer [qwerty] [newer streamID 1719517783484202362, previous StreamID 1719517737207506376]. Ignoring.

Originally created by @ramphex on GitHub (Jun 27, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/2211 **Describe the problem** When leaving a WiFi network and going over to a cell network, or leaving a cell network and going to a WiFi network, all of the peer connections drop and do not reconnect without a manual change of server, resetting the settings, and adding a new device to the dashboard. Dashboard shows the device connected the entire time despite it not being able to connect to any peers. **To Reproduce** Connect to NetBird while on WiFi, turn off WiFi. All peer connections drop and don't reconnect. Dashboard shows connected. Connect to NetBird while on Cell, turn on WiFi. Rinse and repeat. Steps to reproduce the behavior: See above. **Expected behavior** Seamless transition. A clear and concise description of what you expected to happen. Seamlessly switch over **Are you using NetBird Cloud?** No Please specify whether you use NetBird Cloud or self-host NetBird's control plane. Self-hosted **NetBird version** Latest client on iOS 0.28.3 server Add any other context about the problem here. Logs indicate this: > signal_1 | 2024-06-27T19:49:43Z WARN signal/peer/peer.go:78: peer [qwerty] is already registered [new streamID 1719517783484202362, previous StreamID 1719517737207506376]. Will override stream. > signal_1 | 2024-06-27T19:49:43Z INFO signal/server/signal.go:110: peer connected [qwerty] [streamID 1719517783484202362] > signal_1 | 2024-06-27T19:49:57Z INFO signal/server/signal.go:95: peer disconnected [qwerty] [streamID 1719517737207506376] > signal_1 | 2024-06-27T19:49:57Z WARN signal/peer/peer.go:100: attempted to remove newer registered stream of a peer [qwerty] [newer streamID 1719517783484202362, previous StreamID 1719517737207506376]. Ignoring.
saavagebueno added the bugclientiosnetworking labels 2026-08-05 00:58:51 -04:00
Author
Owner

@bcmmbaga commented on GitHub (Jun 28, 2024):

Hello @ramphex, Thank you for bringing this to our attention. We are aware of this issue where peer connections drop when switching between WiFi and cellular networks particularly when one network is turned off.

In the meantime, while we work on implementing network monitoring for mobile devices (already deployed for Linux, macOS, and Windows), we recommend disconnecting and reconnecting to restore connections. We'll keep you updated.

<!-- gh-comment-id:2196507699 --> @bcmmbaga commented on GitHub (Jun 28, 2024): Hello @ramphex, Thank you for bringing this to our attention. We are aware of this issue where peer connections drop when switching between WiFi and cellular networks particularly when one network is turned off. In the meantime, while we work on implementing network monitoring for mobile devices (already deployed for Linux, macOS, and Windows), we recommend disconnecting and reconnecting to restore connections. We'll keep you updated.
Author
Owner

@ramphex commented on GitHub (Jun 28, 2024):

My apologies, I might've not explained it well in my original post. The issue is that once the network is switched, even if manually disconnected and reconnected, it yields in the phone connecting to the server but showing 0 of X peers connected. Manually changing server back to the same server fixes the connection to peers.

<!-- gh-comment-id:2196885597 --> @ramphex commented on GitHub (Jun 28, 2024): My apologies, I might've not explained it well in my original post. The issue is that once the network is switched, even if manually disconnected and reconnected, it yields in the phone connecting to the server but showing 0 of X peers connected. Manually changing server back to the same server fixes the connection to peers.
Author
Owner

@nazarewk commented on GitHub (Apr 23, 2025):

@ramphex is this still an issue for you with the latest NetBird version?

<!-- gh-comment-id:2824903545 --> @nazarewk commented on GitHub (Apr 23, 2025): @ramphex is this still an issue for you with the latest NetBird version?
Author
Owner

@ramphex commented on GitHub (Jun 7, 2025):

The latest client appears to roam fine when switching from wifi to cell and from cell to wifi.

<!-- gh-comment-id:2951944506 --> @ramphex commented on GitHub (Jun 7, 2025): The latest client appears to roam fine when switching from wifi to cell and from cell to wifi.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#4632