Results 1 to 6 of 6

Thread: winsock : Address already in use

  1. #1

    Thread Starter
    Member
    Join Date
    May 2000
    Posts
    56
    I want to connect to the smtp through the lan at the office, it works well the first time but.......

    Next tries are always returning 10048 error: "Address already in use"


    Any idea to get rid of that ?&%&@# sh****

  2. #2
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770
    What winsock is basicly saying is it's aleady connected to somthing and your address is in use. What you need to do is on your disconnect button or whatever, is close the connection by using winsock1.close

    Ok?

  3. #3

    Thread Starter
    Member
    Join Date
    May 2000
    Posts
    56
    here is the code that i use:


    Winsock1.Close

    Do While Winsock1.State <> sckClosed
    DoEvents
    STATUS.Text = "disconnecting from " & SMTP_HOST & ". Please wait."
    Loop


    but it does'nt work if i try after it

  4. #4
    Guest
    That is because there is a port open and it's in use. Try changing the port you are connecting to.

  5. #5

    Thread Starter
    Member
    Join Date
    May 2000
    Posts
    56
    My conclusion is that the port is opened but why on the first time it works but not on the next ?

  6. #6
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    this is because its not closing the port properly.

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