Why is DatagramSocket not binding to the specified port in my Android app?
I’m experiencing an issue with binding a DatagramSocket to a specific port (40000). Despite my efforts, Wireshark shows that packets are being sent from a different source port. Here is the relevant part of my ConnectDeviceViewModel code: