Click here to Skip to main content
16,016,925 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
[Google translate]
Hi all,

currently I am going to create a VOIP chat. Although I have a server, but to avoid the traffic, I would like to make a P2P connection between two clients at once, a video conference is initiated.

The video conference, I've done. Unfortunately, the whole running only on the intranet. Can someone tell me how I can make a direct connection between two clients over the Internet?

The listener can I not, as my routing on the DSL router ends. Establish a TCP connection to the server and the client object funzt to reach to the respective clients and net as great as I had imagined.

Does anyone have any idea how I could do that?
[/Google translate]


Hallo zusammen,

derzeit bin ich dabei eine VOIP Chat zu erstellen. Ich habe zwar einen Server, aber um den Traffic zu verhindern möchte ich eine P2P Verbindung zwischen den beiden Clients auf machen, sobald eine Videokonferenz initiiert wird.

Die Videokonferenz habe ich fertig. Leider läuft das ganze nur im Intranet. Kann mir jemand sagen, wie ich eine Direktverbindung zwischen den beiden Clients über das Internet herstellen kann?

Den Listener kann ich ja nicht erreichen, da mein Routing am DSL-Router endet. Eine TCP-Verbindung zum Server aufzubauen und das Client-Objekt an die jeweiligen Clients zu reichen funzt auch net so toll wie ich mir das vorgestellt habe.

Hat jemand eine Idee wie ich das machen könnte?

Vielen Dank


[edit]Translation added - OriginalGriff[/edit]
Posted
Updated 1-Nov-11 2:28am
v2
Comments
OriginalGriff 1-Nov-11 8:29am    
I'm sure English is not your native language, but it is the default language for this site.
Please, either try to find a translation of your question to English, or find a site in your own native language, as they may be able to help you better than we can!

As I understood your question : you want to have a P2P voice or video connection between two clients on Internet. So if we consider the fact that some users in internet are behind a NAT server, using a server to provide connection between these type of peers is inevitable. Because they can not see each other directly ! (I meant "ping" or whatever type of connection by saying see)

So try to design a communication protocol that relies on a server, even in P2P VOIP or video chats.

Good Luck.
 
Share this answer
 
At least one of the clients must have a publicly visible access point, i.e. direct access or behind a router with NAT port forwarding enabled. If that is the case, as Caydence says, have a server which manages the conferencing and setup, and can send the IP of one of the members of the chat to the others.
 
Share this answer
 
Der Kunde würde beide haben sich mit dem Server, der die IP von einander zu jedem Kunden geben würde verbinden, so dass der Client schaffen könnte die Verbindungen selber.

Aber ich weiß nicht alles, auch nicht. :)


[Edit] Both clients would have to connect to a server that would tell each of them the other client's IP address respectively. Then one client could establish a direct connection to the other one.

Es muss einen Server geben, zu dem alle Clients eine Verbindung aufbauen. Der Server teilt jedem Client die IP-Adresse des jeweils anderen Clients mit. Zu diesem kann er dann eine direkte Verbindung aufbauen.
 
Share this answer
 
v2
Comments
Amir Mahfoozi 1-Nov-11 8:44am    
Whaaaaaaaaaaaaaaaaat ? :o

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900