Click here to Skip to main content
15,920,801 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can Drage elements Pin
Christian Graus27-Apr-07 23:19
protectorChristian Graus27-Apr-07 23:19 
QuestionTcpListener/TcpClient not working! Pin
Lord Kixdemp27-Apr-07 17:57
Lord Kixdemp27-Apr-07 17:57 
Hello everyone!

I have 2 programs, a server and a client. If I start them both on the same computer, it works flawlessly. However, if I try a computer on the network (which I can do Windows file/printer sharing with) with one of the apps, the client says that the target machine actively refused it.

At first I thought it was my router, since I've been having some problems with it lately. But then I used my neighbor's wireless connection with 2 laptops and tried it, no result. So it's got to be my code.

Server:
server = new TcpListener(port); // port: 77
server.Start();

Client:
sock = new TcpClient(host, port); // host: 'localhost' or '192.168.0.100'; port: 77


As I said, both programs work fine on the same computer. Does anyone know why this might happen? Maybe my neighbor's router is crappy too?

Thanks in advance!

Windows Calculator told me I will die at 28. Frown | :(

AnswerRe: TcpListener/TcpClient not working! Pin
cc_wang27-Apr-07 21:03
cc_wang27-Apr-07 21:03 
AnswerRe: TcpListener/TcpClient not working! Pin
bola_shokry28-Apr-07 0:43
bola_shokry28-Apr-07 0:43 
GeneralRe: TcpListener/TcpClient not working! Pin
Lord Kixdemp28-Apr-07 12:45
Lord Kixdemp28-Apr-07 12:45 
GeneralRe: TcpListener/TcpClient not working! Pin
bola_shokry28-Apr-07 13:11
bola_shokry28-Apr-07 13:11 
GeneralRe: TcpListener/TcpClient not working! Pin
Lord Kixdemp28-Apr-07 16:50
Lord Kixdemp28-Apr-07 16:50 
GeneralRe: TcpListener/TcpClient not working! Pin
Lord Kixdemp28-Apr-07 17:04
Lord Kixdemp28-Apr-07 17:04 
QuestionInternetDial!!! Pin
myousufq27-Apr-07 11:49
myousufq27-Apr-07 11:49 
QuestionBluetooth project + Bluetooth Stack + Help :( Pin
NiZaR.TecH27-Apr-07 11:47
NiZaR.TecH27-Apr-07 11:47 
Questionmulti-tire architecture Pin
mehrdadc4827-Apr-07 10:44
mehrdadc4827-Apr-07 10:44 
AnswerRe: multi-tire architecture Pin
Christian Graus28-Apr-07 0:29
protectorChristian Graus28-Apr-07 0:29 
Questionshowing progress of a running Query Pin
Rocky#27-Apr-07 10:33
Rocky#27-Apr-07 10:33 
AnswerRe: showing progress of a running Query Pin
Christian Graus27-Apr-07 10:46
protectorChristian Graus27-Apr-07 10:46 
GeneralRe: showing progress of a running Query Pin
Paul Conrad27-Apr-07 16:07
professionalPaul Conrad27-Apr-07 16:07 
AnswerRe: showing progress of a running Query Pin
overfreeze27-Apr-07 12:17
overfreeze27-Apr-07 12:17 
Question[Message Deleted] Pin
mahmoud wafy27-Apr-07 8:37
mahmoud wafy27-Apr-07 8:37 
AnswerRe: How Look over the field at the same time Pin
Wayne Phipps27-Apr-07 9:06
Wayne Phipps27-Apr-07 9:06 
AnswerI am very sorry to repeat the question twice Pin
mahmoud wafy27-Apr-07 13:45
mahmoud wafy27-Apr-07 13:45 
AnswerRe: I have one question Pin
Christian Graus27-Apr-07 10:46
protectorChristian Graus27-Apr-07 10:46 
QuestionIllustrated to my earlier question [modified] Pin
mahmoud wafy27-Apr-07 8:23
mahmoud wafy27-Apr-07 8:23 
QuestionThread Pool issues Pin
JEC456827-Apr-07 7:47
JEC456827-Apr-07 7:47 
AnswerRe: Thread Pool issues Pin
Jim Warburton27-Apr-07 8:17
Jim Warburton27-Apr-07 8:17 
QuestionDynamic Type should access protected Members of BaseClass [modified] Pin
BASHuss27-Apr-07 6:51
BASHuss27-Apr-07 6:51 
QuestionOpening a Document as ReadOnly Pin
Jonso27-Apr-07 6:44
Jonso27-Apr-07 6:44 

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.