#I can't connect to pc from android with network discovery

10 messages · Page 1 of 1 (latest)

crisp quest
#

hi, i am just using room sample and i add network discovery to my object and ofcourse its working on pc but when i tried with android i cannot connect to my pc(server) (and I tried the exact opposite ) i just turn off the firewall but nothing changed
AND also both are connected to same wifi. so What might I be doing wrong? What do you think I should check?

#

And as far as I understand, network discovery is actually a component made for this.

prime briar
crisp quest
#

but

#

i just write my public ip to networkmanager and its worked! i dont how...

prime briar
keen spindle
#

Discovery works on LAN on same subnet, e.g. both PC acting as server and androids as clients need to be on 192.168.x.y where x is the same for all and y is different for all. If your Wifi router is giving out IP's on a different subnet than the hardwired PC, that could be why discovery on clients can't find the server.

Mirror ships with a discovery example. Load that up on PC (as server) and clients and see if that works. If that does not, it's likely due to how your LAN is set up.

hollow bolt
#

Hello! I don't know if that helps but I had a problem with the Network Discovery. Two copies running on the same machine would work but the ip address that I was getting was different. Tried a few things but nothing worked. My ip address was 192.168.x.y but the ip address received was 192.168.56.1. A while back I installed Virtual Box which installs a virtual Ethernet Adapter. Once I deactivated that Virtual Box adapter, everything started working.