CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2004

    Unhappy winsock running from windows service problem

    Hi all,

    I am writting some VB6 code using winsock to connect to an external ip address. The code works fine when I run it from VB or as an EXE. But when I install it and run as a service on Windows 2000 it errors with '10049 : Address is not available from the local machine'

    I am using the svcit.ocx to make my vb code a windows service.

    Please help!

    Thanks in advance.


  2. #2
    Join Date
    Aug 2003

    Re: winsock running from windows service problem

    Make sure u have the correct IP address, if u r on LAN then ur IP can be revealed by :

    msgbox Winsock1.localip

    else if u r working on a same PC (without any LAN) then ur IP is

    and make sure the server-client has the same port number.

    let me know if u face further problems

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.