Click here to Skip to main content
15,907,874 members
Home / Discussions / C#
   

C#

 
Generalremoting and opening ports [modified] Pin
cignox16-Dec-07 21:13
cignox16-Dec-07 21:13 
Hi all, I've a problem with remoting: in order to connect to a remote object I have to open a port on the server. But then the server also asks for a connection with the client and the port used is random if in the client remoting file there is

<channel ref="tcp" port="0" exclusiveaddressuse="false">

or the specified port otherwise. My problem is that if I have to go behind a firewall I have to open the port, so I specify a port but then... when I try to start a second instance of my app I get an exception because the channel is already in use. I could ask the customer to specify a set (or range) of ports, but I wonder if there are better alternatives. For example, how do applications like P2P or web browser deal with multiple connection? I suppose that they have to accept incoming connections as well...

modified on Friday, December 07, 2007 3:25:47 AM

QuestionHow can I get the name of the calling method? Pin
JoeRip6-Dec-07 20:58
JoeRip6-Dec-07 20:58 
AnswerRe: How can I get the name of the calling method? Pin
JoeRip6-Dec-07 21:06
JoeRip6-Dec-07 21:06 
AnswerRe: How can I get the name of the calling method? Pin
NikoTanghe6-Dec-07 21:20
NikoTanghe6-Dec-07 21:20 
GeneralRe: How can I get the name of the calling method? Pin
JoeRip8-Dec-07 18:51
JoeRip8-Dec-07 18:51 
Generaldatagridview question Pin
E_Gold6-Dec-07 20:35
E_Gold6-Dec-07 20:35 
GeneralRe: datagridview question Pin
Nouman Bhatti6-Dec-07 21:17
Nouman Bhatti6-Dec-07 21:17 
GeneralResize Form Pin
A.Asif6-Dec-07 19:58
A.Asif6-Dec-07 19:58 
GeneralRe: Resize Form Pin
N a v a n e e t h6-Dec-07 20:06
N a v a n e e t h6-Dec-07 20:06 
GeneralRe: Resize Form Pin
Nouman Bhatti6-Dec-07 21:18
Nouman Bhatti6-Dec-07 21:18 
GeneralRe: Resize Form Pin
dan!sh 6-Dec-07 21:37
professional dan!sh 6-Dec-07 21:37 
Questionhow to get the cell value of a DataGridView 's click event Pin
kssknov6-Dec-07 19:39
kssknov6-Dec-07 19:39 
AnswerRe: how to get the cell value of a DataGridView 's click event Pin
Ujjaval Modi7-Dec-07 0:26
Ujjaval Modi7-Dec-07 0:26 
QuestionAnybody help me??????? Pin
Member 34662656-Dec-07 18:42
Member 34662656-Dec-07 18:42 
GeneralRe: Anybody help me??????? Pin
V.6-Dec-07 20:49
professionalV.6-Dec-07 20:49 
GeneralWinforms Datagrid Pin
deepaks36-Dec-07 18:33
deepaks36-Dec-07 18:33 
GeneralRe: Winforms Datagrid Pin
Ujjaval Modi7-Dec-07 0:33
Ujjaval Modi7-Dec-07 0:33 
QuestionWHY ASPX pages are running slow...? Pin
Pankaj - Joshi6-Dec-07 18:20
Pankaj - Joshi6-Dec-07 18:20 
AnswerRe: WHY ASPX pages are running slow...? Pin
Christian Graus6-Dec-07 18:31
protectorChristian Graus6-Dec-07 18:31 
GeneralRe: WHY ASPX pages are running slow...? PinPopular
I.explore.code6-Dec-07 19:01
I.explore.code6-Dec-07 19:01 
GeneralReally good ...gladiatron Pin
Sun Rays6-Dec-07 19:54
Sun Rays6-Dec-07 19:54 
GeneralRe: WHY ASPX pages are running slow...? Pin
pmarfleet6-Dec-07 21:36
pmarfleet6-Dec-07 21:36 
GeneralRe: WHY ASPX pages are running slow...? Pin
Sathesh Sakthivel6-Dec-07 22:09
Sathesh Sakthivel6-Dec-07 22:09 
GeneralRe: WHY ASPX pages are running slow...? Pin
Anthony Mushrow7-Dec-07 15:17
professionalAnthony Mushrow7-Dec-07 15:17 
AnswerRe: WHY ASPX pages are running slow...? Pin
N a v a n e e t h6-Dec-07 18:51
N a v a n e e t h6-Dec-07 18:51 

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.