Results 1 to 3 of 3

Thread: Winsock problem

  1. #1

    Thread Starter
    Addicted Member Guru's Avatar
    Join Date
    May 2000
    Location
    sulking in the cupboard under the stairs
    Posts
    237

    Winsock problem

    I'm trying to connect to a remote IP address and port using the Winsock control but it stays in the sckConnecting state forever

    Code:
    Winsock1.RemoteHost = REMOTE_IP_ADDRESS
    Winsock1.RemotePort = PORT_NUMBER
    
    Winsock1.Connect
    
    Do While Winsock1.State = 6
    DoEvents
    
    Loop
    REMOTE_IP_ADDRESS and PORT_NUMBER are constants defined elsewhere


    I can ping the ip address ok and if I use an invalid address a different state code is returned.

    Any ideas?
    Another light-hearted post from Guru

  2. #2
    Junior Member
    Join Date
    Dec 2005
    Location
    UK
    Posts
    21

    Re: Winsock problem

    HTML Code:
    http://www.winsockvb.com/forums/index.php?

  3. #3
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    Re: Winsock problem

    so you have a server your trying to connect to ?

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