XNA Creators Club Online
Page 1 of 1 (6 items)
Sort Posts: Previous Next

Network State Management System Link Fail

Last post 04-18-2008 10:29 PM by thoseion. 5 replies.
  • 02-27-2008 10:54 PM

    Network State Management System Link Fail

    Hi guys, I am new at doing networking on the XNA, I have recently downloaded XNA Network State Management sample, but it couldn't find other session. I am wondering could it be caused by my company's network. Any help and suggestion are welcome :) Thanks in advance.
  • 02-28-2008 1:04 PM In reply to

    Re: Network State Management System Link Fail

    For system link networking, you need both machines to be on the same subnet.

    There can also be problems if you have more than one network adapter in your machine. That can happen either if you have two physical network cards, or also some programs seem to install virtual network adapters for reasons that I don't entirely understand.
    XNA Framework Developer - blog - homepage
  • 04-18-2008 7:21 PM In reply to

    Re: Network State Management System Link Fail

    Thought I'd give this a little bump because I'm having the same problem, namely the Network State Management sample can't find any sessions when using the System Link option (not tried any others).

    The Client Server sample works fine though so I was just wondering what are the major differences between how the two samples find/handle connections?  The only real difference I can see is the NSM is using IAsyncResult and the custom EventArgs class but I'm unsure as to how this affects the discovery of sessions.
  • 04-18-2008 7:46 PM In reply to

    Re: Network State Management System Link Fail

    OK, just went back to it and realised you can only join the session when in the lobby - it wont find sessions once in the Gameplay screen.  So what would I need to change to allow users to join my session once it's already begun?
  • 04-18-2008 8:47 PM In reply to

    Re: Network State Management System Link Fail

    Set NetworkSession.AllowJoinInProgress to true after you create the session on the host.
    XNA Framework Developer - blog - homepage
  • 04-18-2008 10:29 PM In reply to

    Re: Network State Management System Link Fail

    Shawn Hargreaves:
    Set NetworkSession.AllowJoinInProgress to true after you create the session on the host.

    Thanks! That fixed the problem :-)
    I actually looked through the ClientServer sample for something along those lines but couldn't see anything.
Page 1 of 1 (6 items) Previous Next