Author Topic: Can't get right internal address on ios devices  (Read 2297 times)

fantast_xu

  • Guest
Can't get right internal address on ios devices
« on: May 30, 2013, 10:19:57 AM »
Hi
I used ExampleMenu.cs code to create local server (also add these same components as Example Menu) and also tried to use "List<ServerList.Entry> list = TNLobbyClient.knownServers.list;" code to find server.
It is all ok on Mac and Windows but when I run program on real iOS device, it seems TNLobbyClient can't get right internal ip address. It should be 192.168.1.xxx, but I got "180.168.41.175" strange address. And then I made a build for ExampleMenu and run it on iOS, still got this "180.168.41.175" address.

Did I miss something or made wrong settings on ipad?

Or should I modify the source code according this thread? http://www.tasharen.com/forum/index.php?topic=4405.0
« Last Edit: May 30, 2013, 10:26:30 AM by fantast_xu »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Can't get right internal address on ios devices
« Reply #1 on: May 30, 2013, 02:58:13 PM »
Yes you should modify the localAddress function.