Results 1 to 4 of 4
  1. #1
    ighor10 is offline Member
    Join Date
    Mar 2010
    Posts
    9
    Rep Power
    0

    Default Socket connection Problem

    hi guys,

    i am developing a multiplayer game via socket connection..

    the program work well in my lan.. with my friend over his IP Address it work's fine too, but he needed to make a port fowarding on his router.

    so my problem is, how can i make a port fowarding? or maybe, when router receives a packet to a port that it dont know what PC that want this packet, it make a broadcasting yeah?
    so, how can i make my application to listen to all packets receiveds from the router, and select the packet it want. if it's possible.


    i saw that when im installing Skype (Make the most of Skype - free internet calls and great value calls), this application made to me a port fowarding in my router. i dont know how its possible..

    anyone can help??

    thanks anyway.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Simply why you cannot use a map to keep reference to the communicate PC. At the very first time, before lay the communication channel client-server have to had share an ID for later communicate. Later you can use that ID for the numbering packets, actually like tagging. But the issue here is how to handle on communication channel close down after the initial sharing, if the ID keeps in a session like temporary location.

  3. #3
    ighor10 is offline Member
    Join Date
    Mar 2010
    Posts
    9
    Rep Power
    0

    Default

    i didnt get it..

    can u explain better how i will obtain packets without the por fowarding???

    thanks..

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    I'm not talking about that completely able to avoid port forwarding communication. What I'm saying is, using a single port we can initialize the communications, and numbering the client, or the source. Based on the do the communication through one or few ports.

Similar Threads

  1. socket connection in an applet
    By j2me64 in forum Java Applets
    Replies: 5
    Last Post: 04-12-2010, 08:34 PM
  2. Socket Connection problem
    By xpan in forum Networking
    Replies: 4
    Last Post: 02-14-2010, 04:32 PM
  3. [SOLVED] problem in socket connection
    By neeraj.singh in forum Networking
    Replies: 2
    Last Post: 02-20-2009, 01:33 PM
  4. problem in socket connection in sending images
    By vibhor in forum Networking
    Replies: 2
    Last Post: 02-20-2009, 05:39 AM
  5. How To Make Socket Connection
    By madhumurundi in forum Networking
    Replies: 5
    Last Post: 04-21-2008, 06:05 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
  •