winsock running from windows service problem
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: winsock running from windows service problem

  1. #1
    Join Date
    Sep 2004
    Posts
    1

    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.

    10Leo

  2. #2
    Join Date
    Aug 2003
    Location
    India
    Posts
    81

    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 127.0.0.1

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center