Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: CheckedListBox event handling strangeness Pin
James Kolpack29-Jul-04 8:31
James Kolpack29-Jul-04 8:31 
GeneralRe: CheckedListBox event handling strangeness Pin
James Kolpack29-Jul-04 11:12
James Kolpack29-Jul-04 11:12 
GeneralC# DataGrid - how to get the sort arrow in column header Pin
T J Manjaly29-Jul-04 5:03
sussT J Manjaly29-Jul-04 5:03 
GeneralColumn selection control needed Pin
Jan R Hansen29-Jul-04 4:38
Jan R Hansen29-Jul-04 4:38 
GeneralRe: Column selection control needed Pin
billb211229-Jul-04 4:52
billb211229-Jul-04 4:52 
GeneralRe: Column selection control needed Pin
Nick Parker29-Jul-04 5:33
protectorNick Parker29-Jul-04 5:33 
GeneralDns.GetHostByAddress problem Pin
Dave@keyspell29-Jul-04 4:12
sussDave@keyspell29-Jul-04 4:12 
GeneralRe: Dns.GetHostByAddress problem Pin
Heath Stewart29-Jul-04 4:41
protectorHeath Stewart29-Jul-04 4:41 
If you don't want to hardcode the computer name, use Environment.MachineName. Call Dns.Resolve on that.

With the continuous rise in firewall adoption, you should not expect the server to be able to send a client information without a connection already being established. A client request/server response protocol is most prevalent in everything you do today, from SMTP, POP, IMAP (mail protocols) to HTTP and various IM protocols (all over SSL, which is also client request/server response-based).

Communications should occur like so:

Client creates a connection to the server, which the server optionally accepts (maybe it's a blocked IP or something). The client sends commands to request or post data. The server responds with an error or success code and sends the requested data or status back to the client. The client disconnects.

Because of firewalls - and especially NAT'ing firewalls (network address translation, which typically use reserved IPs that don't resolve on the Internet like the 192.168 subnet you're IP address is) - the server can't respond directly to the client without a connection already existing. There are some protocols supported by some firewalls (like VPN) that may allow this, but these are not trivial to implement.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Dns.GetHostByAddress problem Pin
Dave@keyspell29-Jul-04 5:31
sussDave@keyspell29-Jul-04 5:31 
QuestionHow to Export to CSV file from DataSet? Pin
HyVong29-Jul-04 3:11
HyVong29-Jul-04 3:11 
AnswerRe: How to Export to CSV file from DataSet? Pin
Not Active29-Jul-04 4:13
mentorNot Active29-Jul-04 4:13 
AnswerRe: How to Export to CSV file from DataSet? Pin
Michael P Butler29-Jul-04 4:35
Michael P Butler29-Jul-04 4:35 
QuestionHow hard will it be to move to C# 2.0 ? Pin
Andres Coder29-Jul-04 3:02
Andres Coder29-Jul-04 3:02 
AnswerRe: How hard will it be to move to C# 2.0 ? Pin
SOCM_FP_CPP29-Jul-04 3:11
SOCM_FP_CPP29-Jul-04 3:11 
GeneralRe: How hard will it be to move to C# 2.0 ? Pin
Nick Parker29-Jul-04 5:07
protectorNick Parker29-Jul-04 5:07 
GeneralRe: How hard will it be to move to C# 2.0 ? Pin
SOCM_FP_CPP29-Jul-04 19:42
SOCM_FP_CPP29-Jul-04 19:42 
AnswerRe: How hard will it be to move to C# 2.0 ? Pin
Heath Stewart29-Jul-04 4:52
protectorHeath Stewart29-Jul-04 4:52 
GeneralTurning of the monitors Pin
PrebKlok29-Jul-04 3:01
PrebKlok29-Jul-04 3:01 
GeneralRe: Turning of the monitors Pin
Daniel Turini29-Jul-04 3:11
Daniel Turini29-Jul-04 3:11 
GeneralRe: Turning of the monitors Pin
PrebKlok29-Jul-04 3:31
PrebKlok29-Jul-04 3:31 
GeneralRe: Turning of the monitors Pin
Daniel Turini29-Jul-04 3:35
Daniel Turini29-Jul-04 3:35 
GeneralRe: Turning of the monitors Pin
PrebKlok29-Jul-04 4:18
PrebKlok29-Jul-04 4:18 
GeneralRe: Turning of the monitors Pin
Heath Stewart29-Jul-04 4:48
protectorHeath Stewart29-Jul-04 4:48 
GeneralRe: Turning of the monitors Pin
PrebKlok29-Jul-04 5:10
PrebKlok29-Jul-04 5:10 
GeneralRe: Turning of the monitors Pin
Tom Larsen29-Jul-04 5:20
Tom Larsen29-Jul-04 5: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.