Re: Widnows sending RST in tpc/ip connection




Thank you for the suggestions,
however I can't get it to work, but maybe I'm doing it wrong.
I used
Socket = socket (AF_INET, SOCK_STREAM, 0):
and then
local_sin.sin_family = AF_INET;
local_sin.sin_port = htons (nPort);
local_sin.sin_addr.s_addr = htonl (INADDR_ANY);
bind (Socket, (struct sockaddr *) &local_sin,
sizeof (local_sin)

I thought that this might be enough, but is it?
I tried also to call listen() after bind but I always end up with windows
(or some program other than mine) sending the reset message.
Since everything works find if I let winsock connect, there must be
something I don't do correctly.
(my SYN message seem to be working fine (I get back the SYN,ACK) and in
comparassion to the SYN winsock send I can't find any differencies except
checksum)
I don't have any firewall running that would block.

thanks for any advice
/Niklas

"Niklas Olsson" <niklaso@xxxxxxxxxxx> wrote in message
news:u7HItL37FHA.2012@xxxxxxxxxxxxxxxxxxxxxxx
> Hello,
> I have my own program that connects to another computer SYN-> SYN,ACK->ACK
> but when I receive the SYN,ACK windows sends a RST message.
> I use winsock to open a port that I close when I am done.
> Why does windows send this reset message?
>
> thanks!
> /Niklas
>


.



Relevant Pages

  • Re: Geocities HELP!
    ... I also dowmoladed Netscape to try to get Yahoo PageBuilder to load and I had ... Tons of peiople are having this problem with Windows XP. ... Uninstall Java Runtime Environment and download ... Removing some spyware can damage the Winsock stack. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: dropping partial connection--cant browse
    ... Assuming Windows XP... ... Winsock corruption *should* also prevent Outlook, ... from connecting, but you might try Winsock XP Fix from ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • RE: Modem Problem
    ... Your first issue seems to be indifferent whether you install the 2 OS on ... these issues may occur if the Winsock registry keys ... The Netdiag tool will return the test results for several network ... To use the Netdiag tool, you must install the Microsoft Windows XP ...
    (microsoft.public.windowsxp.hardware)
  • Re: Internet explorer hangs, processor pegged, cant kill process
    ... know what I might try in order to fix this. ... Removing some spyware can damage the Winsock stack and you may not be able to connect to the Internet. ... Before you try to remove spyware, download a copy of LSP-Fix - a free program to repair damaged Winsock 2 stacks AFTER you remove the software (all Windows versions) ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: IE6 Page Cannot be displayed while connection is OK
    ... Winsock damaged: LSP-Fix - a free program to repair damaged Winsock 2 stacks ... How to Reset Internet Protocol in Windows XP ... a laptop which uses the same broadband connection as the desktop and it ...
    (microsoft.public.windows.inetexplorer.ie6.browser)