September 28th, 2004, 04:28 AM
winsock running from windows service problem
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.
Thanks in advance.
September 28th, 2004, 09:40 AM
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 :
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
Click Here to Expand Forum to Full Width