‎04-16-2013 09:19 AM
Hi,
I can't establish a TCP/IP connection between my host machine and another PC. I'm using the "Simple Data Sever" and "Simple Data Client" VIs that ship with LabVIEW. Error message is below
The example VIs work finw when I use them only on my host machine.
I can confirm the following;
Any troubleshoot ideas?
Solved! Go to Solution.
‎04-16-2013 11:12 AM
Is the server runnin gon the remote machine? What are the firewall settings between the two machines? Can you communicate with th eremote machine in any other manner, such a pinging it?
‎04-16-2013 01:27 PM
@Mark_Yedinak wrote:
Is the server runnin gon the remote machine? What are the firewall settings between the two machines? Can you communicate with th eremote machine in any other manner, such a pinging it?
Only the client is running on the remote machine.
I've turned off the windows firewall on both host and remote machine if this is what you mean?
I've haven't tried pinging it, good idea! I'll give it a go tomorrow.
‎04-16-2013 04:29 PM
You need to run the server on one computer and the client on the other. The server must be started first. Is your host machine the server and the remote the client? What are the IP addresses of both machines? How are they connected?
‎04-17-2013 02:32 AM
@Mark_Yedinak wrote:
You need to run the server on one computer and the client on the other. The server must be started first. Is your host machine the server and the remote the client? What are the IP addresses of both machines? How are they connected?
I've successfully pinged the server and the client..
The server is running on my desktop (host) and the client is running on a laptop (remote).
The server is being started first as it creates a listener on my specified port.
Sever (host) IP is 10.0.0.175 and Client (remote) IP is 10.0.0.183
Both machines are on the same wireless network.
‎04-17-2013 09:20 AM - edited ‎04-17-2013 09:21 AM
Does your WiFi access point/router have a firewall? What port are you using? Have you tried using a different port number?
‎04-17-2013 09:32 AM
@Mark_Yedinak wrote:
Does your WiFi access point/router have a firewall? What port are you using? Have you tried using a different port number?
Not sure if router has a firewall, I'll have to check with IT.
Regarding port numbers I haven't tried too many, namely 2055 and 5001.
I guess I also try with a range of port numbers aswell...
Appreciate the guidance
‎04-17-2013 10:34 AM
Try a port number over 50000. You are using port numbers in the user space. Port 2055 is assigned to the Iliad-Odyssey Protocol and 5001 is assigned to commplex-link. Not sure what eith erof these are or how widely they are used but you could be runnin ginto a conflict. Ports 49152-65535 are reserved for dynamic/private use. You can get more information here regarding IP ports. It is worth a try. The other thing you could do is install Wireshark on each PC and see if the packet (TCP-SYN) is getting through the client and server.
‎08-12-2020 01:59 PM
Hi, I am also having the same problem and I can ping both computers thru cmd on windows and the can see each others IP address so the firewall on both computer are off and all ports are open. I was reading you talk about using a higher port number is that more likely to be the problem?
Thank You,
‎08-12-2020 03:30 PM
@Anthony86 wrote:
Hi, I am also having the same problem and I can ping both computers thru cmd on windows and the can see each others IP address so the firewall on both computer are off and all ports are open. I was reading you talk about using a higher port number is that more likely to be the problem?
Thank You,
Just because you can ping the other address does not indicate that the firewall is off. You need to verify that the firewall is actually off. Ping (ICMP) are treated differently that TCP ports in firewalls. It is quite common to be able to ping an IP address but not be able to open a connection on a specific port. You can do a "netstat -a" to see what ports are currently in use on the computer. It is possible that you are using a port that is already in use. What port are you using?