Thank you for your code snippet, but unfortunately I can't establish a connection.
I think it's better to create the connection manually and then communicate via the IP address.
In Android, I also have the problem that I can't establish a connection with Android 10, but everything works fine with Android 15.
I wanted to make the whole thing easier for users, but if it's possible, then it has to work that way.