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

My two laptops can't find each other (Vista)

Last post 10/14/2009 2:24 PM by Budoray. 16 replies.
  • 7/13/2008 5:51 PM

    My two laptops can't find each other (Vista)

    Help,

    I've been trying to run the client server sample on my two laptops (both running vista), and they can't find each other. Actually it happens with every game with networking features.

    I know its something to do with my network but I don't know how to fix it.

    Any help appreciated.

    Cheers

    Evan.

  • 7/13/2008 6:47 PM In reply to

    Re: My two laptops can't find each other (Vista)

    You are most likely falling fowl of the Firewall. The easiest way to determine this is to turn the firewall off on both machines. Try again to connect and if the firewall is the problem then with them turned off it should work.

    If after determining that the firewall is the problem and you wish to have the firewall turned on then you will have to open the appropriate TCP ports on both machines.

    Ant.
  • 7/13/2008 6:48 PM In reply to

    Re: My two laptops can't find each other (Vista)

    The Windows Firewall is on by default in Vista. You can turn it off, or configure it to let your games through, but you need privilege elevation to do that.
    Jon Watte, Direct3D MVP
    Tweets, occasionally
    kW X-port 3ds Max .X exporter
    kW Animation source code
  • 7/13/2008 8:27 PM In reply to

    Re: My two laptops can't find each other (Vista)

    okay I've turned off the firewall on both my laptops, and still no luck

    I'm so confused.

  • 7/13/2008 10:01 PM In reply to

    Re: My two laptops can't find each other (Vista)

    Did you make one project and run it from both or did you make two separate projects?  The networking uses the project's GUID to do the matching. In your game's Assembly.cs file you see what the GUID your project has to make sure that both games have the same GUID.

    Edit: Just re-read that it was a sample game, so this is obviously not the issue. I'm not sure then what is giving you that trouble.

  • 7/14/2008 2:07 PM In reply to

    Re: My two laptops can't find each other (Vista)

    do you have other networking features with no problems? are you sharing files or printers.

    also are you on a home network behind a router?

    VALHYRE (now on community games! Thanks to all those who play tested and reviewed.)
  • 7/14/2008 2:54 PM In reply to

    Re: My two laptops can't find each other (Vista)

    Thanks for the replies,

    I haven't tried file sharing or printers. Also I have a combined modem/router (came with broadband).

    Cheers

    Evan.

  • 7/14/2008 3:00 PM In reply to

    Re: My two laptops can't find each other (Vista)

    What IP addresses do you have for both machines? You can find out by typing "ipconfig" at the command prompt (without quotes).
    Ant.
  • 7/14/2008 6:41 PM In reply to

    Re: My two laptops can't find each other (Vista)

    if the 2 laptops are not in the same workgroup they will not see each other.
    VALHYRE (now on community games! Thanks to all those who play tested and reviewed.)
  • 7/25/2008 9:43 AM In reply to

    Re: My two laptops can't find each other (Vista)

    It seems i have the same problem:

    I was going to test the network code of my game, I ran the game on a Vista laptop and a XP Desktop, but they couldn't connect to each other in XNA. I turned firewalls off, Messed with everything (changing IPs, using LAN, WLAN, ...) and still no luck. I even used different computers but still they couldn't find the game session. I thought it may be my code's problem so i ran samples, but they had the same problem.

    my code is:

    Create:

    ...

    session = NetworkSession.Create(NetworkSessionType.SystemLink,1,8);

    ...

    Find and Join:

    ...

    AvailableNetworkSessionCollection availableSessions =NetworkSession.Find(NetworkSessionType.SystemLink, 1, null);

    ...

    I'm using XNA 3.0 :'(

  • 7/25/2008 4:45 PM In reply to

    Re: My two laptops can't find each other (Vista)

    Have you tried one of our networking samples (eg. Peer to Peer) on these machines?

    That will confirm whether the problem is with your code or your machine configuration.


    XNA Framework Developer - blog - homepage
  • 7/25/2008 6:43 PM In reply to

    Re: My two laptops can't find each other (Vista)

    Okay, once again I tried your P2P sample and it didn't work. (it was working when I had XNA 2 on my machines)

    and because i tried these codes on other machines, I don't think it is "machine configuration". Can it be a problem with my XLIVE Redist? I have the 1.2 version.

  • 7/26/2008 11:00 AM In reply to

    Re: My two laptops can't find each other (Vista)

    I downgraded XLive Redist from 1.2 to 1.1, the P2P sample is now working. I copied the exact sample code into my game, it doesn't work in my game! I checked my code a thousand times, i couldn't find a problem :-(

    here's the code I used in my game:

     

            void CreateSession()
            {
                game.sayMessage("Creating session...");

                try
                {
                    networkSession = NetworkSession.Create(NetworkSessionType.SystemLink,
                                                           maxLocalGamers, maxGamers);
                    HookSessionEvents();
                }
                catch (Exception e)
                {
                    game.sayMessage(e.Message);
                }
            }

            void JoinSession()
            {
                game.sayMessage("Joining session...");

                try
                {
                    // Search for sessions.
                    using (AvailableNetworkSessionCollection availableSessions =
                                NetworkSession.Find(NetworkSessionType.SystemLink,
                                                    maxLocalGamers, null))
                    {
                        if (availableSessions.Count == 0)
                        {
                            game.sayMessage( "No network sessions found.");
                            return;
                        }

                        // Join the first session we found.
                        networkSession = NetworkSession.Join(availableSessions[0]);
                        HookSessionEvents();
                    }
                }
                catch (Exception e)
                {
                    game.sayMessage( e.Message);
                }
            }

    when I want to join a game it says No network sessions found.
  • 7/26/2008 1:00 PM In reply to

    Re: My two laptops can't find each other (Vista)

    Problem solved.
  • 11/23/2008 3:28 AM In reply to

    Re: My two laptops can't find each other (Vista)

    Care to say how you fixed it?
  • 11/30/2008 4:58 PM In reply to

    Re: My two laptops can't find each other (Vista)

    When I connected one laptop to the router(wired) and the other wireless. They could find each other on the xna samples.

    When I looked through my own code I realised that I wasn't calling networkSession.Update()  regularly. Maybe that is the problem?
  • 10/14/2009 2:24 PM In reply to

    Re: My two laptops can't find each other (Vista)

    I am running in to a similar problem. I am using Netrumble 3.0, built and distributed as release with no code changes, and both machines are on the same subnet. Machine 1 is wireless @ 192.168.1.67 and Machine 2 is at 192.168.1.69 and is cabled. I can ping both machines, but I am unable to find the local session from machine 2 to machine 1 or vice versa when trying to join session. I am not signed in to Live. I simply created a local player1 on machine 1 and a local player2 on machine 2. Please tell me I am missing something obvious here. I have not tried to cable machine 1.

    Thoughts, suggestions, crits... all are welcomed. Many thanks.
Page 1 of 1 (17 items) Previous Next