'Connection Reset by Remote Side'
'Connection Reset by Remote Side'
'Connection Reset by Remote Side'
'Connection Reset by Remote Side'
'Connection Reset by Remote Side'
'Connection Reset by Remote Side' 'Connection Reset by Remote Side' 'Connection Reset by Remote Side' 'Connection Reset by Remote Side' 'Connection Reset by Remote Side' 'Connection Reset by Remote Side' 'Connection Reset by Remote Side' 'Connection Reset by Remote Side'
'Connection Reset by Remote Side' 'Connection Reset by Remote Side'
'Connection Reset by Remote Side'
Go Back  Xtreme Visual Basic Talk > > > 'Connection Reset by Remote Side'


Reply
 
Thread Tools Display Modes
  #1  
Old 06-07-2002, 04:42 PM
Phreak Phreak is offline
Freshman
 
Join Date: Jun 2002
Posts: 22
Default 'Connection Reset by Remote Side'


Hi,

A friend of mine and I are in the very basic stages of making a program that acts somewhat like GameSpy, but only for LAN parties.

We're working on the "search for servers" code right now, and how it works is:

'The user puts in the subnet that they want to search (e.g. 192.168.0, or if they enter nothing it defaults to 192.168.0.1), they can enter any three of the private networks (192.168; 10.; and 172.16-32), if anything else is entered, an error message is returned.

The program then determines if the value entered is correct, and if so, continues. It then determines what subnet was entered of the three. For our testing we're using 192.168.0.1.

The problem we have is that if we run the program (compiled or not) on a Windows ME machine it works fine. But the other machine we're developing it on, is WinXP Pro. Whenever we run it on that machine we get a Run-Time Error "Connection reset by remote side". If we hit DEBUG when the error comes up, it takes us to 'Call udpClient.GetData(strQ3TalkBak)'.

Here is the sub procedure that we get this error is:

---------------------------------------------------------------------------

Private Sub udpClient_DataArrival(ByVal bytesTotal As Long)
Dim strQ3TalkBak As String
Dim strQ3TalkBak_Chk As String
Call udpClient.GetData(strQ3TalkBak)
If strQ3TalkBak <> "" Then
strQ3TalkBak_Chk = Left$(strQ3TalkBak, 13)

If strQ3TalkBak_Chk = "˙˙˙˙statusRes" Then
'arrServers(x) = strSubnet & ":" & udpClient.RemotePort
'arrQ3TalkBak(x) = strQ3TalkBak
intCounter = intCounter + 1
End If
End If
lblServerCount.Caption = intCounter
End Sub

---------------------------------------------------------------------------

Here is the code where it sends the data:

---------------------------------------------------------------------------

Public Sub srch192(Oct1 As Byte, Oct2 As Byte, Oct3 As Byte, Oct4 As Byte)
Dim strQ3Talk As String
Dim y As Byte
strQ3Talk = "˙˙˙˙getstatus"

strSubnet = LTrim$(Str$(Oct1)) & "." & LTrim$(Str$(Oct2)) & _
"." & LTrim$(Str$(Oct3)) & "."

For y = 1 To "254" Step 1
strSubnet = strSubnet & y
udpClient.RemoteHost = strSubnet
udpClient.RemotePort = "27960"
udpClient.SendData (strQ3Talk)
strSubnet = Left$(strSubnet, 10)
Next y
End Sub

---------------------------------------------------------------------------

This procedure is called in an OnClick procedure that I didn't put on this post because I didn't see it necessary.

Is there any reason that we would get this error on WinXP and not ME?

Thank you so much for your help!
__________________
If it works... don't worry, I'll fix it.
Reply With Quote
  #2  
Old 06-07-2002, 06:36 PM
Phreak Phreak is offline
Freshman
 
Join Date: Jun 2002
Posts: 22
Default

Ok, so that was a little confusing. I thought of this, so if anyone can tell me if I'm right or wrong, please do so.

Going by the loop above, would NT cause the program to crash and say that the connection was reset if I'm sending and receiving to much or at the same time on the same port?

Would Winsock crash? And thats why I'm getting the error? Because I set udpClient.Bind(27950).... does that mean it sends AND receives to that port? And if so, would this crash the program if it got to clogged? Or would NT crash the program because it's already doing too much stuff on that port?

Hope that simplifies it a little bit....

Thanks
__________________
If it works... don't worry, I'll fix it.
Reply With Quote
  #3  
Old 06-07-2002, 07:25 PM
Phreak Phreak is offline
Freshman
 
Join Date: Jun 2002
Posts: 22
Default

Nevermind... I found the answer here:

http://support.microsoft.com/search/...;en-us;Q260018

Seems there's a bug in the winsock control.

Theres a solution on this page if anyone else has this problem.
__________________
If it works... don't worry, I'll fix it.
Reply With Quote
  #4  
Old 06-08-2002, 03:14 AM
Flyguy's Avatar
Flyguy'Connection Reset by Remote Side' Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 19,165
Thumbs up

Thanks for sharing this!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
'Connection Reset by Remote Side'
'Connection Reset by Remote Side'
'Connection Reset by Remote Side' 'Connection Reset by Remote Side'
'Connection Reset by Remote Side'
'Connection Reset by Remote Side'
'Connection Reset by Remote Side' 'Connection Reset by Remote Side' 'Connection Reset by Remote Side' 'Connection Reset by Remote Side' 'Connection Reset by Remote Side' 'Connection Reset by Remote Side' 'Connection Reset by Remote Side'
'Connection Reset by Remote Side'
'Connection Reset by Remote Side'
 
'Connection Reset by Remote Side'
'Connection Reset by Remote Side'
 
-->