Hi Ppl,
I have been trying to use the netstat command to find out the port of VI server for LabVIEW as well EXE's running VI Server. Here is how we do it
- First we have to get the process ID of LabVIEW or the EXE using the task list command ->tasklist |find /i "labview"
- We then use the netstat command to find out the ports in which LabVIEW is listening ->netstat -a -o -n |find /i "<process id>"
I quite surprised to see that actually LabVIEW is listening in more than one port, here is the response to the above command:
TCP 0.0.0.0:3363 0.0.0.0:0 LISTENING 7120
TCP 127.0.0.1:55462 0.0.0.0:0 LISTENING 7120
TCP 0.0.0.0:3363 0.0.0.0:0 LISTENING 7120 TCP 127.0.0.1:55462 0.0.0.0:0 LISTENING 7120
Here 3363 is the VI Server port that I'm using. I'm wondering what is the other port ? Is there any way that will help us narrow down to the VI Server port from these ports?
Thanks,
Sathish