Skip to content

[Bug]:IP Address and QR Code do not update when network changes #51

@Th-Shivam

Description

@Th-Shivam

Bug Description

When the application is running and the host machine switches to a different network (e.g., changing WiFi, connecting to a different hotspot), the displayed IP address and the connection QR code in the browser do not update automatically. They remain stuck on the old IP address, making it impossible for the client to connect without manually refreshing or restarting the application.

Steps to Reproduce

  1. Connect your PC to WiFi Network A.
  2. Start the Rein application and open the browser.
  3. Note the IP address and QR code.
  4. Disconnect from Network A and connect to WiFi Network B (or a mobile hotspot).
  5. Observe that the UI still displays the IP from Network A.
  6. Try to scan the QR code with a phone connected to Network B - it will fail to connect.

Expected Behavior

The application should detect network interface changes and automatically:

  1. Update the displayed IP address.
  2. Regenerate the QR code with the new connection URL.
  3. Ideally, notify the connected client or UI of the change.

Desktop Operating System

Linux (Wayland - GNOME)

Mobile Device (Client)

Firefox

Rein Version

Dev (Not specified in package.json)

Console Logs / Error Messages

No specific error messages in the console. The app simply retains the stale IP address.

Screenshots / Recordings

No response

Checklist

  • I have searched for existing issues to avoid duplicates

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions