Results 1 to 1 of 1

Thread: [VB6] UDP Error

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2007
    Posts
    84

    [VB6] UDP Error

    I currently use both TCP & UDP connections on my client and server. The client manages to send data to the server via UDP but when the server sends it via UDP to the client, and the client does sckUDP.GetData, it gives "connection is reset by remote side" error. Any help?

    EDIT:
    Here is my UDP code:
    Code:
    Client:
            sckUDP.LocalPort = 5000
            sckUDP.RemotePort = txtPort.Text + 1
            sckUDP.RemoteHost = txtHost.Text
            sckUDP.Bind 5000
    
    Client Arrival:
            Dim strData As String
            sckUDP.GetData strData, vbString, bytesTotal
    
    
    Server:
            sckUDP.LocalPort = Val(Setting(1)) + 1
            sckUDP.RemotePort = 5000
    
    
    Server Arrival:
            Dim strData As String
            sckUDP.GetData strData
    Last edited by Hellomy; May 28th, 2008 at 09:01 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width