I am trying to connect an Android Device with my Desktop for a game. That part is done. Directly inputting the IP in an inputfield, then setting the networkAdress of the networkmanager yada yada. Works perfectly fine.
However, now I want to add the broadcastdiscoverer for easy access.
I have a panel that adds a big button “JOIN” whenever the broadcoastdiscoverer receives a broadcast.
When you click the button, the broadcast’s IP address is set for my CustomLobbyManager class. The port is set as well. Then “StartClient()” is called.
Two issues:
-
I can only ever receive a broadcast if my Desktop is the Server, and my Android is the client. Other way around no broadcast will be received by the Desktop.
-
Whenever I click the button I will get a timeout. I checked if the IP is wrong in any way, but it’s the exact same. I can still connect flawlessly whenever I input the IP in my inputfield.
I am at a loss right now, is there a quirk that stops this from working?