11-13-2014 11:30 PM
Hello
If I wire the reader url (computer A) input of the Writer Endpoint function in computer B, the Network Stream will run. Then how can I get the IP address of computer B in computer A.
Thanks.
11-14-2014 05:08 AM
Henry,
I'm not sure if I understand correctly. Are you using a hostname to establish a connection and wish to resolve the hostname to an IP Address?
If you are using windows you can execute "nslookup $HOSTNAME" in a cmd shell. I'm sure there are similar functionalities for other operating systems. To do this in LabVIEW you can use the "System Exec" VI.
Regards
11-14-2014 07:03 AM
or just use the host name as part of the URL.
11-14-2014 10:19 AM
I'm not sure what anyone else here is talking about, but I don't see a way for the server (the side that accepts connections) to determine the IP address of a network stream client. There's a possibility you could Shell Exec "netstat" and parse the results, but I'm not sure that would be reliable. If you switch to straight TCP communication, then you can get the IP address when a connection is established.