06-12-2006 03:20 PM
06-13-2006 05:39 PM
05-27-2008 04:38 AM
I am facing same problem. When I run TCP server I get Error 60. I have checked the firewall settings also. Also I have tried the tcp reconnect vi , it's not opening in LV 8.5. Kindly help.
yashpal.
05-28-2008 06:19 PM
05-31-2008 08:00 AM
dear FieldKam,
The error occurs at TCP open connection function. The VI that I have mentioned reconnect.vi , was posted on forum by one of ni application engineer as a solution of the above problem. Error message that appears is error 60, port already in use.
thanks,
yashpal.
05-31-2008 09:40 AM
The port you selected may be used by something else.
Set up your port only for this communication and disable everything else which is trying to read/write to this port.
RayR
05-31-2008 09:40 AM
The port you selected may be used by something else.
Set up your port only for this communication and disable everything else which is trying to read/write to this port.
RayR
09-09-2009 08:11 PM
09-10-2009 02:38 AM
ASTDan wrote:How do I disable everything else on a port? If for example I am using Port 28000 how would I determine if there is something else using this port? How do I ensure only my app is using this port?
Thanks
Dan
The only way to reserve your port for sure is by acquiring it as early as possible. Once grabbed you own it and can use it until you release it.
Rolf Kalbermatter
09-10-2009 04:16 AM - edited 09-10-2009 04:18 AM
rolfk wrote:
ASTDan wrote:How do I disable everything else on a port? If for example I am using Port 28000 how would I determine if there is something else using this port? How do I ensure only my app is using this port?
Thanks
Dan
The only way to reserve your port for sure is by acquiring it as early as possible. Once grabbed you own it and can use it until you release it.
Rolf Kalbermatter
At least if you are using a recent LabVIEW version, you can rather use a dynamic IP Port and register that port in your ServiceLocater service. The Open TCP Connection node supports connecting a string to its port input that identifies a specific service that has been registered with the Service Locater service on the remote machine.
The TCP Create Listener node allows to specify a string as service name, with which the port will be registered in the local Service Locator. So you can loop through the ports until you find one that opens without problems and that port will be registered in the local Service Locator under the name you specify.
This only works without problem when the client and server are both in LabVIEW, but the NI Service Locator protocol is fairly trivial and could be added to other clients easily too. To query for instance for a specific serivce name you simply send the string "GET /<service name> HTTP/1.0\r\n" to the port 3580 of the IP address you want to query a service for.
Rolf Kalbermatter