Results 1 to 4 of 4
Thread: Socket connection Problem
- 06-22-2010, 01:13 PM #1
Member
- Join Date
- Mar 2010
- Posts
- 9
- Rep Power
- 0
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.
- 06-22-2010, 03:41 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 06-22-2010, 10:02 PM #3
Member
- Join Date
- Mar 2010
- Posts
- 9
- Rep Power
- 0
i didnt get it..
can u explain better how i will obtain packets without the por fowarding???
thanks..
- 06-23-2010, 04:10 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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
-
socket connection in an applet
By j2me64 in forum Java AppletsReplies: 5Last Post: 04-12-2010, 08:34 PM -
Socket Connection problem
By xpan in forum NetworkingReplies: 4Last Post: 02-14-2010, 04:32 PM -
[SOLVED] problem in socket connection
By neeraj.singh in forum NetworkingReplies: 2Last Post: 02-20-2009, 01:33 PM -
problem in socket connection in sending images
By vibhor in forum NetworkingReplies: 2Last Post: 02-20-2009, 05:39 AM -
How To Make Socket Connection
By madhumurundi in forum NetworkingReplies: 5Last Post: 04-21-2008, 06:05 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks