Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
QuestionMouse Scheme in windows Pin
caiena26-Aug-09 7:11
caiena26-Aug-09 7:11 
AnswerRe: Mouse Scheme in windows Pin
I Believe In GOD26-Aug-09 9:56
I Believe In GOD26-Aug-09 9:56 
QuestionProgress bar [loading progress bar for background data load ] Pin
smoothcriminal26-Aug-09 6:29
smoothcriminal26-Aug-09 6:29 
AnswerRe: Progress bar [loading progress bar for background data load ] Pin
Henry Minute26-Aug-09 7:12
Henry Minute26-Aug-09 7:12 
AnswerRe: Progress bar [loading progress bar for background data load ] Pin
DaveyM6926-Aug-09 7:23
professionalDaveyM6926-Aug-09 7:23 
GeneralRe: Progress bar [loading progress bar for background data load ] Pin
rocky81126-Aug-09 8:12
rocky81126-Aug-09 8:12 
GeneralRe: Progress bar [loading progress bar for background data load ] Pin
Henry Minute26-Aug-09 8:29
Henry Minute26-Aug-09 8:29 
QuestionP2P connections between apps in different LAN environments Pin
Patrick Eckler26-Aug-09 6:21
Patrick Eckler26-Aug-09 6:21 
Hello!

I have created a pretty cool application that works in the office environment, it allows for people to pass text, files and voice chat between each other. Its much like the Yahoo chat or those types of apps but allows you to select several people and simultaneously send encoded data. You can see the app here:

http://www.umbrasystems.com/gcomm.php

The way it works is; there is a server who sits listening on a port, the chat clients connect to that server. As chat clients connect, the server gives a list of the other connected chat clients, and informs the existing chat clients of the newcomer, so all clients now have each others names and IP addresses. When the user(chat client) wants to send a message to one or more users, he selects them from the interface and sends the data. The data is sent P2P because each chat client has its own listening server which the sender connects to to send the data, be it text or file or whatever.

This application system works great in a LAN environment but if there is a chat client outside, lets say the boss is at home but still wants to talk to the employees, he/she can't make a P2P connection to any of the others inside the LAN. This is assuming the boss can at least connect to the server(which may sit on the outside). The way I have it now is if the P2P can not be established then all data is routed through the host.

My question is this:
Assuming all chat clients have a connection to the server, how do I make a P2P connection to other chat clients on other LANs? How do other applications like Skype or Yahoo make that connection??? (and without having to port forward). I'm sure that Skype and Yahoo messenger connect to a common server initially as well.

In my server I can see that there are 2 connections, bill and Tom, who's addresses are the same 66.75.225.55:3045 and 66.75.225.55:4033, but the server has communication with them on different ports established by their LAN's router's NAT table. Is it feasible for the chat client 'Pat', who is on a different LAN, to use the address and port established by the host to directly send data?

I would appreciate any insight on how this is done!!
AnswerRe: P2P connections between apps in different LAN environments Pin
yuemeng7-Apr-10 20:23
yuemeng7-Apr-10 20:23 
GeneralRe: P2P connections between apps in different LAN environments Pin
Patrick Eckler2-May-10 10:14
Patrick Eckler2-May-10 10:14 
QuestionOffice View Component does not set Differrent First Page Header Pin
dptalt26-Aug-09 6:12
dptalt26-Aug-09 6:12 
QuestionSerialize a collection of objects Pin
godfetish26-Aug-09 5:58
godfetish26-Aug-09 5:58 
AnswerRe: Serialize a collection of objects Pin
Henry Minute26-Aug-09 6:04
Henry Minute26-Aug-09 6:04 
GeneralRe: Serialize a collection of objects Pin
godfetish26-Aug-09 6:06
godfetish26-Aug-09 6:06 
GeneralRe: Serialize a collection of objects Pin
Henry Minute26-Aug-09 6:25
Henry Minute26-Aug-09 6:25 
GeneralRe: Serialize a collection of objects Pin
godfetish26-Aug-09 7:20
godfetish26-Aug-09 7:20 
GeneralRe: Serialize a collection of objects Pin
Henry Minute26-Aug-09 7:43
Henry Minute26-Aug-09 7:43 
GeneralRe: Serialize a collection of objects Pin
godfetish26-Aug-09 8:23
godfetish26-Aug-09 8:23 
GeneralRe: Serialize a collection of objects Pin
Henry Minute26-Aug-09 8:30
Henry Minute26-Aug-09 8:30 
QuestionUsing Cascading DropDown Pin
LucBite26-Aug-09 5:33
LucBite26-Aug-09 5:33 
AnswerRe: Using Cascading DropDown Pin
Henry Minute26-Aug-09 6:05
Henry Minute26-Aug-09 6:05 
QuestionPrint the output of HTML Pin
Programm3r26-Aug-09 4:48
Programm3r26-Aug-09 4:48 
AnswerRe: Print the output of HTML Pin
N a v a n e e t h26-Aug-09 5:00
N a v a n e e t h26-Aug-09 5:00 
GeneralRe: Print the output of HTML Pin
Programm3r26-Aug-09 20:33
Programm3r26-Aug-09 20:33 
GeneralRe: Print the output of HTML Pin
N a v a n e e t h27-Aug-09 2:20
N a v a n e e t h27-Aug-09 2:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.