LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

two server in one computer

Hi,

I have a problem about the port setting. I have two server.vi in one computer and I try to connect to these two server at the same time. Since the IP is fix in one computer, I have to set two different port number, for example, 6040 and 6041 for these two server.vi. The issue is when I run these two server first, then I can not connect to the server with port 6041. I have to stop 6040 server first to connect to port 6041 server. I figure out that if I run two server.vi in one computer with different port number together, I can not connect to the server.vi with bigger port number, 6041. For my application, I need to run two server.vi in one computer, and I can connect to any of these two server.vi from client computer. Can anyone h
elp me to solve this issue?
Thanks.

Fred
0 Kudos
Message 1 of 2
(2,381 Views)
Hello Fred,

Is server.vi a VI that you wrote? Or is it one of the LabVIEW shipping examples, Data Server.vi or Simple Data Server.vi? I was able to run two instances of Simple Data Server.vi on different ports and connect to them simultaneously on different computers. What this example does is simply open up a TCP listener on a certain port. There should be no conflict in starting another TCP listener as long as it is on a different port.

If none of these suggestions help, or if I�m not correctly understanding your issue, please reply with comments or answers to the discussion above and any additional information that may help, and I�ll be happy to look further into it.

Have a nice day!

Robert M
Applications Engineer
Robert Mortensen
Software Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,381 Views)