|
-
Mar 12th, 2007, 07:42 AM
#1
TCP-connection remains in State "Connecting"
Hi,I'm ran into a problem with my LAN-application.
I'm connecting six applications over a LAN and for testing on one PC (using the loopbackIP). I have that running, but (out of a sudden?) I'm uable to connect a special type of the clients. Since all types are using the same code (server and clients are in the same EXE, identified by selectable type), and all are connecting good I'm a bit lost.
The Server is listening on a WinsockArray (indexNumber 0), LocalPort set 1360.
The Client is connecting to that port on an automaticly selceted socketHandle (setting 0).
The server does get the _ConnectionRequest on ArrayItem 0 (the SocketHandle is different from the Client-one, but that should be OK). The LocalPort and RemotePort-Settings are ViceVersa to the Client. In this event the server .Accepts the connection on a new ArrayItem (it won't work wether I try the problem client first last or any point in between, and I tried it after reboot as well). The state of the connection on the server side is now "connected".
The next thing i'd be looking forward would be the _Connect Event on the client side, but that doesn't happen! The state on the Clinet remains "connecting".
The only difference I could figure out between a connecting client and the problem one is that the problem client doesn't show the .RemoteHostIP.
The .RemoteHost is set by the code to "127.0.0.1" before connecting, for a good client the same value would show for .RemoteHostIP, but for he problem client this value remains empty.
Does anybody have an idea wherelese I could look!
Last edited by opus; Mar 13th, 2007 at 10:17 AM.
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
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
|