Click here to Skip to main content
15,886,519 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help to create voice chat program Pin
Christian Graus1-Jun-09 13:00
protectorChristian Graus1-Jun-09 13:00 
QuestionMessage Removed Pin
1-Jun-09 5:57
professionalN_tro_P1-Jun-09 5:57 
AnswerRe: Winform KeyPress Pin
musefan1-Jun-09 6:06
musefan1-Jun-09 6:06 
GeneralRe: Winform KeyPress Pin
Dave Kreskowiak1-Jun-09 6:23
mveDave Kreskowiak1-Jun-09 6:23 
GeneralRe: Winform KeyPress Pin
musefan1-Jun-09 6:28
musefan1-Jun-09 6:28 
AnswerRe: Winform KeyPress Pin
Dave Kreskowiak1-Jun-09 6:17
mveDave Kreskowiak1-Jun-09 6:17 
AnswerRe: Winform KeyPress Pin
terradtc1-Jun-09 8:51
terradtc1-Jun-09 8:51 
QuestionDetecting the correct outside port Pin
harold aptroot1-Jun-09 5:06
harold aptroot1-Jun-09 5:06 
Before I can ask the question I'll have to describe the situation:
There is a server and there are some clients, but the only thing server does is remembering which clients there are and then giving that information to clients which ask for it. So far so good, except that the clients are listening on some port (which is fixed on the inside of their NAT, say 1000). But obviously this information won't do anyone any good - they'd need the outside port. But how can you get it? I tried binding the socket that talks with the server to the same inside port (so that the server would see the correct port) but then it fails to connect. And the client itself seems to have no way to detect what outside port it is using..
So, what can I do about this? Do I need to throw the entire design into the bin (if so, what should it be like?)



AnswerRe: Detecting the correct outside port Pin
Eddy Vluggen1-Jun-09 5:15
professionalEddy Vluggen1-Jun-09 5:15 
GeneralRe: Detecting the correct outside port Pin
harold aptroot1-Jun-09 5:35
harold aptroot1-Jun-09 5:35 
AnswerRe: Detecting the correct outside port Pin
Nicholas Butler1-Jun-09 5:28
sitebuilderNicholas Butler1-Jun-09 5:28 
GeneralRe: Detecting the correct outside port Pin
harold aptroot1-Jun-09 5:33
harold aptroot1-Jun-09 5:33 
GeneralRe: Detecting the correct outside port Pin
Nicholas Butler1-Jun-09 5:50
sitebuilderNicholas Butler1-Jun-09 5:50 
GeneralRe: Detecting the correct outside port Pin
harold aptroot1-Jun-09 6:10
harold aptroot1-Jun-09 6:10 
GeneralRe: Detecting the correct outside port Pin
Nicholas Butler1-Jun-09 6:28
sitebuilderNicholas Butler1-Jun-09 6:28 
GeneralRe: Detecting the correct outside port Pin
harold aptroot1-Jun-09 6:32
harold aptroot1-Jun-09 6:32 
GeneralRe: Detecting the correct outside port Pin
Luc Pattyn1-Jun-09 5:56
sitebuilderLuc Pattyn1-Jun-09 5:56 
GeneralRe: Detecting the correct outside port Pin
harold aptroot1-Jun-09 6:01
harold aptroot1-Jun-09 6:01 
GeneralRe: Detecting the correct outside port Pin
Dave Kreskowiak1-Jun-09 6:22
mveDave Kreskowiak1-Jun-09 6:22 
GeneralRe: Detecting the correct outside port Pin
harold aptroot1-Jun-09 6:28
harold aptroot1-Jun-09 6:28 
GeneralRe: Detecting the correct outside port Pin
Dave Kreskowiak1-Jun-09 8:54
mveDave Kreskowiak1-Jun-09 8:54 
GeneralRe: Detecting the correct outside port Pin
harold aptroot1-Jun-09 8:59
harold aptroot1-Jun-09 8:59 
GeneralRe: Detecting the correct outside port Pin
Dave Kreskowiak1-Jun-09 9:13
mveDave Kreskowiak1-Jun-09 9:13 
GeneralRe: Detecting the correct outside port Pin
harold aptroot1-Jun-09 9:21
harold aptroot1-Jun-09 9:21 
GeneralRe: Detecting the correct outside port Pin
Dave Kreskowiak1-Jun-09 10:49
mveDave Kreskowiak1-Jun-09 10:49 

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.