Results 1 to 8 of 8

Thread: Multiplayer Online game and players from LAN

  1. #1
    Clicker Multimedia Fusion 2
    Greg's Avatar
    Join Date
    Dec 2006
    Location
    Poland
    Posts
    315

    Multiplayer Online game and players from LAN

    Hello!

    I've stumbled on a serious problem while designing a multiplayer online game. It isn't directly related to Clickteam products, but I hope somebody will be able to help me.

    If somebody from a LAN connects to a server, then the server's gonna see only the IP of the whole LAN, not the IP of the client.

    It's not a problem as long as there's only 1 client from the same LAN, but we can surely assume that there're gonna be many more. And here's the problem - the server is gonna see all of them as the same IP address, so it won't be able to tell apart the players.

    Is there any way to make the server tell apart the connections from the same LAN?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,924

    Re: Multiplayer Online game and players from LAN

    Give them a unique ID when they join regardless of thier IP.

  3. #3
    Clickteam Clickteam
    James's Avatar
    Join Date
    Jun 2006
    Location
    Newcastle, UK
    Posts
    6,773

    Re: Multiplayer Online game and players from LAN

    If you're talking about Lacewing, it doesn't identify connections by the IP address, so you'll be fine.

  4. #4
    Clicker Multimedia Fusion 2
    Greg's Avatar
    Join Date
    Dec 2006
    Location
    Poland
    Posts
    315

    Re: Multiplayer Online game and players from LAN

    What about MOOClick? I'm not really keen on using Lacewing, since I don't know C++ well enough to create my own server for it.

    Edit:
    Nevermind, I've just checked it and it can tell apart players by their ID O_o

    I guess it solves my problem, but could you guys explain to me how does it work if it doesn't know the IP of the player (or maybe it does?) xD

  5. #5
    Forum Moderator Multimedia Fusion 2 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    DizzyDoo's Avatar
    Join Date
    Oct 2006
    Location
    South England
    Posts
    718

    Re: Multiplayer Online game and players from LAN

    Quote Originally Posted by Pasiunia
    What about MOOClick? I'm not really keen on using Lacewing, since I don't know C++ well enough to create my own server for it.
    You could write some Python code using PyLacewing for the server, it's a very simple language.
    Cranktrain - Currently finishing a new game called The Cat Machine!
    @MattLuard on Twitter.

  6. #6
    Clickteam Clickteam
    James's Avatar
    Join Date
    Jun 2006
    Location
    Newcastle, UK
    Posts
    6,773

    Re: Multiplayer Online game and players from LAN

    Quote Originally Posted by Pasiunia
    I guess it solves my problem, but could you guys explain to me how does it work if it doesn't know the IP of the player (or maybe it does?) xD
    http://en.wikipedia.org/wiki/Network_address_translation
    http://en.wikipedia.org/wiki/Transmission_Control_Protocol

  7. #7
    Clicker Multimedia Fusion 2
    Greg's Avatar
    Join Date
    Dec 2006
    Location
    Poland
    Posts
    315

    Re: Multiplayer Online game and players from LAN

    Thanks, Jamie It's always nice to know something useful

  8. #8
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298

    Re: Multiplayer Online game and players from LAN

    Every connection gets its own ID, even from the same machine, or from behind a NAT. This does mean you can't tell someone running multiple copies of the game on the same pc from multiple PCs behind one NAT.

Similar Threads

  1. Multiplayer online game
    By ClickJoe in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th September 2010, 09:41 PM
  2. Online multiplayer game
    By Jarzka in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 24th November 2009, 05:15 AM
  3. Help with more than 2 online players
    By Oreo in forum Lacewing
    Replies: 4
    Last Post: 17th January 2009, 01:34 AM
  4. Connect 4 - Online Multiplayer Game! [BETA]
    By pinacoladaxb in forum File Archive
    Replies: 4
    Last Post: 5th November 2008, 11:20 PM
  5. Online Multiplayer Game
    By Game_Master in forum The Games Factory 2 - Technical Support
    Replies: 8
    Last Post: 12th August 2007, 12:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •