Results 1 to 1 of 1

Thread: simple connection problem - I think??? [RESOLVED]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    67

    Question simple connection problem - I think??? [RESOLVED]

    I am trying to establish a connection over 2 computers, but everytime there is a problem

    the listening computer has the code

    VB Code:
    1. Private Sub Form_Load()
    2. With winsock
    3. [INDENT]call .close[/INDENT]
    4. [INDENT].localport = 10101[/INDENT]
    5. [INDENT]call .listen[/INDENT]
    6. End With
    7.  
    8. Private Sub winsock_ConnectionRequest(ByVal requestID As Long)
    9. With winsock
    10. [INDENT].close[/INDENT]
    11. [INDENT]call .Accept(requestID)[/INDENT]
    12. End With
    13. End Sub

    The computer sending the information has this code

    VB Code:
    1. Private Sub sck_Connect()
    2. With sck
    3. [INDENT]Call .Close
    4. .RemoteHost = "192.168.1.100"
    5. .RemotePort = 10101
    6. Call .Connect[/INDENT]
    7. End With
    8. End Sub

    I am using TCP/IP and what happens when I click a command to connect is the listening computer winsock.state = sckClosing, and the sending computer goes to sck.state = sckError

    It is probably something really obvious knowing me but Please help
    Last edited by TheBoy; Apr 12th, 2005 at 10:45 AM. Reason: resolved

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