m3nth wrote:
> I am trying to create a service and have followed the example here:
>
> http://zone.ni.com/devzone/conceptd.nsf/webmain/A9B2FA96B851394586256B26006ECB98?opendocument
>
> This question may actually be more related to VI server's however, I'm
> not sure.
>
> I have recreated the files per the tutorial. In the GetCookieClient
> VI, with the CookieService program running in the background, I can
> successfully execute and get Fortune of the Day, so long as I replace
> the "myserver.natinst.com" with "Localhost" or "127.0.0.1"
>
> My problem is trying to use my actual machine name, so that this code
> may actually be used across the network. I am at a loss why I cannot
> use my Host Name or IP address with this code... below is a summary of
> my results:
>
> "Localhost", "127.0.0.1" -- Works
> Resolved IP from IPConfig -- Error 63, The network connection was
> refused by the server.
> Host Name from IPConfig -- Error 66, The network connection was closed
> by the peer.
> Host Name + Connection-specific DNS Suffix - Error 66, The network
> connection was closed by the peer.
>
> If I resolve "Localhost" to an IP, then the IP back to a string (using
> the LV network functions), I obtain the Host Name +
> Connection-specific DNS Suffix.
>
> Any ideas why I can't just plug my machine name in and have it
> work?--why it wants "Localhost" or "127.0.0.1"? I would eventually
> like to try calling my service from a different PC, but if my own PC
> can't even access itself... well... I don't think I'm going to get
> very far elsewhere.
Have you made sure to enable other IP address ranges in the VI server
section of your application ini file. I believe that by default VI
server only accepts local connections and evethough you are using your
own public IP address, this is not really a local address in the most
strict sense.
To add other IP address ranges you can best go in LabVIEW into
Options->VI Server and add them there and then copy those entries from
the LabVIEW.ini file to your application service ini file. It is not a
good idea however to add full access to * to this list if your computer
is possibly accessible from public internet.
Rolf Kalbermatter
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390