Winsock Connection Problem

I have checked the forum for winsock problems and found some that have similar problems, but I still wasn't able to fix my problem.

My app is a simle test chat program with a server running on my comp and client trying to connect on it. Server listens on port 5535 and client connects on port 5535, I believe the coding is correct because i can succesfully connect using lan.

My problem is a "Connection is forcefully rejected", I have a d-link DI-524, so I know I have to open ports, I opened port 5535, the port my app currently uses. I tryed again and same error. I have sp 1 so i dont have windows firewall. I have also disabled the internet firewall, and still the message appears.

I tryed to connect without a router, but still same problem. Then with the router, i used a program, wireshark, to track my net activity. I looks like the client sends the connection request and the router recieves and sends to proper computer, but then something happens. I dont know how to properly read what the error is so I was hoping that you guys could help me with this problem.

I have attached the report file from wireshark. (change the file type to pcap I dont know how to save the report any other way and to upload I had to change to .txt)
[1280 byte] By [Djordje] at [2007-11-20 11:47:59]
# 1 Re: Winsock Connection Problem
Use the following code

Private Sub WinSock_ConnectionRequest(ByVal requestID As Long)
If WinSock.State <> sckClosed Then WinSock.Close
WinSock.Accept requestID
End Sub

UDDHAB
uddhab at 2007-11-9 19:32:24 >
# 2 Re: Winsock Connection Problem
that piece of code is already in there. I doesn't help, still cant connect.
Djordje at 2007-11-9 19:33:24 >