|
-
Jan 15th, 2008, 02:11 PM
#1
Thread Starter
New Member
Please help me understand why this TCP client & server wont connect.
Just made this simple TCP client and server with help from a tutorial. Only problem I'm facing now is!
It can't connect over lan or internet, works perfect hosting a localhost server and connecting to it. It's weird.
It's programmed in Visual basic 2005 express.
Projectfiles:
http://www.stigern.net/Chatter.zip

Please help me, It's so annoying getting stuck with such a error as this ><
-
Jan 15th, 2008, 04:52 PM
#2
Re: Please help me understand why this TCP client & server wont connect.
Just out of curiosity, can you confirm that you don't have a firewall blocking the port you are using?
My usual boring signature: Nothing
 
-
Jan 15th, 2008, 06:24 PM
#3
Member
Re: Please help me understand why this TCP client & server wont connect.
could you post the code for your connecting and accpeting of connection?
-
Jan 16th, 2008, 07:08 AM
#4
Thread Starter
New Member
Re: Please help me understand why this TCP client & server wont connect.
Firewall is off yes. Both on router and windows.
qazwsx: look in the projectfiles. Code is there
-
Jan 17th, 2008, 05:14 AM
#5
Re: Please help me understand why this TCP client & server wont connect.
Where you catch an exception on connect have you displayed the actual message being generated? That may geive you a idea of the reason the connect is failing.
-
Jan 17th, 2008, 07:50 AM
#6
Thread Starter
New Member
Re: Please help me understand why this TCP client & server wont connect.
 Originally Posted by Doogle
Where you catch an exception on connect have you displayed the actual message being generated? That may geive you a idea of the reason the connect is failing.
Huh? What do you mean?
-
Jan 18th, 2008, 06:17 AM
#7
Hyperactive Member
Re: Please help me understand why this TCP client & server wont connect.
Hi
I don't have any solution for you, but when I run the app. connection seams to be ok. I can't send message to the server or vice versa. When checking for errors it seams to be something with the StreamReceiver AsyncResult.
-
Jan 19th, 2008, 02:07 AM
#8
Re: Please help me understand why this TCP client & server wont connect.
 Originally Posted by Stigern
Huh? What do you mean?
In your code you have many "Try .. Catch" blocks of code. If the "Catch" code gets executed - ie there is an error of some sort - the Exception Object will contain details about the error. All I was asking, was whether you'd looked at the Message in the Exception Object to see why the Connection failed.
(I'm not a .NETter so the terminology might not be correct but the principle is. You've gone to all that trouble to detect when an error is generated and then not reported why it happened)
Last edited by Doogle; Jan 19th, 2008 at 02:11 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|