| View previous topic :: View next topic |
| Author |
Message |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sat Jan 17, 2009 12:37 pm Post subject: Direct Connections |
|
|
I was wondering how a "Direct Connection" is possible. Like the option in AIM for a direct connection so you can show photos and such. How can a direct connection between two clients be possible without port forwarding? Also, how can you transfer the images with packets?
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
b6ooy Grandmaster Cheater
Reputation: 0
Joined: 21 Sep 2006 Posts: 653
|
Posted: Sat Jan 17, 2009 12:43 pm Post subject: |
|
|
I want to ask the same question too ..
I've made few programs in C++ using sockets , but the program doesn't connect online ( only throught a private network ) and I cannot do portforward ( I get empty page when typing the modem ip etc.. )
|
|
| Back to top |
|
 |
killersamurai Expert Cheater
Reputation: 0
Joined: 10 Sep 2007 Posts: 197 Location: Colorado
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sat Jan 17, 2009 3:19 pm Post subject: |
|
|
Thanks killer I'll take a look at it.
EDIT:
Is this suppose to work on a WAN?
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Sun Jan 18, 2009 5:36 am Post subject: |
|
|
A lot of those major programs use a form of NAT Traversal, like STUN or UDP hole punching.
In short it works like this:
client A and B want to connect directly to each other, but don't have ports forwarded. They both connect to a server (which does have ports forwarded). This will automatically open up an outbound port in the router, and the server will for example send the port number of client A to client B. Then the server will disconnect and client B will quickly try to connect to client A while the port is still open.
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sun Jan 18, 2009 3:08 pm Post subject: |
|
|
| tombana wrote: | A lot of those major programs use a form of NAT Traversal, like STUN or UDP hole punching.
In short it works like this:
client A and B want to connect directly to each other, but don't have ports forwarded. They both connect to a server (which does have ports forwarded). This will automatically open up an outbound port in the router, and the server will for example send the port number of client A to client B. Then the server will disconnect and client B will quickly try to connect to client A while the port is still open. |
Wow, thanks tombana! I'll definitely look into that! But as for my second question, how exactly would you transfer images over sockets?
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
|