Author Topic: [HELP] Game running on local WAN?  (Read 2079 times)

yo_milo

  • Newbie
  • *
  • Thank You
  • -Given: 10
  • -Receive: 2
  • Posts: 36
    • View Profile
[HELP] Game running on local WAN?
« on: July 12, 2015, 01:12:29 PM »
Hello... I am almost done with my first TNET App...

However, I have this problem...
The app is supposed to be used at a conference, most likely a hotel room; therefore, the networks are not to be trusted... So, in order to avoid having problems with the network, I thought creating an Ad Hoc network, and everyone connecting to it would be my solution.

However, I cannot connect to my server on an Ad Hoc network... Is it possible?
This is what I am currently Doing, neither the TNET example, nor my app connects.

First I create my network in my MAC


Then I run my server using mono


Then I connect to the network.
Then I run the app... The example cannot find any servers to join... Of course I can join using localhost, but then again, iPads aren't able to connect.


Both in the example, and in my app, I keep getting this error.


And I cannot create new Servers, because a server is already running (Also, because I do not need to).




What is my best choice in order to make my game work in Unknown networks? It is supposed to be a WAN game.  Will I be able to run without internet connection, Will I be able to run it in an Ad Hoc Network?
Should I use a router? I am sorry this might be a little bit out of the scope of TNET... But I would really appreciate your help.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [HELP] Game running on local WAN?
« Reply #1 on: July 12, 2015, 08:04:21 PM »
My guess is that when you set up your ad-hoc network, you end up with 2 networks -- your disconnected LAN, and your connected ad-hoc. You need to specify which network you'll be working with TNet.Tools.defaultNetworkInterface.