Author Topic: Not hosting on one Android device  (Read 2208 times)

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
Not hosting on one Android device
« on: August 28, 2015, 07:28:21 AM »
Anyone have experience of hosts not running on some devices? I can launch a host on my Nexus 7 fine, even the S3 Mini, but on the Galaxy Note 10.1 the host isn't detected by other machines (0 hosts discovered).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Not hosting on one Android device
« Reply #1 on: August 30, 2015, 03:39:10 PM »
Assuming you mean LAN discovery, this is done by sending UDP broadcasts to the LAN. It won't work via carrier data as it doesn't allow UDP. TCP is just a much more reliable choice when it comes to mobile device support anyway.

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
Re: Not hosting on one Android device
« Reply #2 on: June 29, 2016, 06:02:47 AM »
A follow up. Still had this issue with a Wifi LAN game. On a lot of devices, a hosted server is undiscoverable to other devices. Just tried TNet.UdpProtocol.useMulticasting = true; and it makes the server discoverable.

Is there any reason not to use multicasting? Could it not be enabled by default?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Not hosting on one Android device
« Reply #3 on: July 01, 2016, 11:34:33 PM »
I had issues with multicasting on the iOS back in 2014. That's why I defaulted it to 'false' on that platform. Are you saying it works fine now?