Skip to content

Server does not start when hosting hotspot from the same device (works only after initial WiFi connection) #81

@im6575330-prog

Description

@im6575330-prog

Describe the bug

The server behaves inconsistently depending on the network source.
If I connect my phone to an external WiFi network (router or another phone’s hotspot), the server starts normally.
However, when I enable hotspot on my own phone and connect another phone to it, the server does not start.
Interestingly, if I first connect to external WiFi and start the server successfully, and then enable hotspot while WiFi is still connected, the server continues to work and becomes accessible via hotspot as well.
This suggests a possible network interface binding or initialization issue.

To Reproduce

Scenario 1 – Server fails (Hotspot only)

  1. Make sure WiFi is turned OFF.

  2. Enable mobile hotspot on the device.

  3. Connect another phone/device to this hotspot.

  4. Open the app and try to start the server.

  5. Observe that the server does not start.


Scenario 2 – Server works (External WiFi)

  1. Connect the device to an external WiFi network (router or another phone’s hotspot).

  2. Open the app and start the server.

  3. Observe that the server starts successfully.


Scenario 3 – Works after WiFi initialization

  1. Connect to external WiFi.

  2. Start the server successfully.

  3. While keeping WiFi ON, enable mobile hotspot.

  4. Connect another device via hotspot.

  5. Observe that the server remains running and works via hotspot.

Expected behavior

The server should start successfully regardless of the active network type.
It should work properly when:
The device is connected to an external WiFi network
The device is connected to another phone’s hotspot
The device is hosting its own mobile hotspot
Only hotspot is enabled (without WiFi)
The server should correctly detect and bind to the available network interface and remain accessible to connected devices.

Device

Iqoo 15

Android version

Android 16

App Version

0.6.1

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions