03-31-2009 03:06 AM
Thanks Nathand,
I switch the windows firewall off on both computer, and change the port to from 55555 to 55599 (for no particular reason) on both ends. This doesn't change errors that occur though.
Is there a quick way to check that the port is unused? Are there any other things that I could check?
03-31-2009 03:55 AM
I downloaded a tool called Essential NetTools 4.2, which can scan ports. I see that the specific port I use is not in-use, and when I run my app, the port is labeled "open".
...
03-31-2009 04:45 AM
I have tracked down the problem to the fact that the server computer has two ethernet cards. One connected to the network of my building (leading to the internet) and the second directly cabled to the client computer.
If I disabled the (internet) ethernet card, and restarted labview, and the STM server-client example program works, and my app too!
But is there a better solution, than disabling my other network card?
Thanks, Paul.
03-31-2009 10:14 AM
03-31-2009 10:29 AM
nathand wrote:
I think you can get this working but I can't guarantee it - I think I've seen some posts on this forum from people having similar problems. I assume both cards have different IP addresses? Make sure that your all your networking settings (netmask, gateway) are correct.
... like making sure they are on different sub-nets....
ben
04-01-2009 04:03 AM
hi guys, thanks for your replies!
Currently the settings are:
Card 1: (disabled, used to have these settings):
Ip: 139.91.197.xxx
Subnet: 255.255.255.0
Gateway: 139.91.197.80
Card 2:
Ip: 169.254.102.17
Subnet: 255.255.0.0
Both cards, automatically obtain there settings. I am new to this network stuff, so I don't know exactly what I should be changing, and to what.
Any help with that would be greatly appreciated!
Thanks, Paul.
04-01-2009 09:41 AM
The best thing to do here is to contact your IT person, otherwise you're going to have to explain the structure of your network. Are the two machines that run your LabVIEW programs the only computers on that network link, or is that part of some bigger network? If it's just those two computers, then you should assign them static IP addresses since there's no server available to assign them valid addresses automatically, and use reserved addressed (for example 10.0.0.1 and 10.0.0.2) with a netmask of 255.255.255.0. If however you have two large, independent networks, and one of your machines happens to sit on both, then you'll have to work with someone who understands your specific network. You might want to try simply swapping the ethernet cables between the two cards since your operating system may be prioritizing one card over the other. It's possible you can set up a static route between one machine and the other using arp, but that's outside my area of expertise. You should also do some experimenting with ping in a command window to check basic communication between the two machines.
I do currently have a system running with two network cards, one talking to several control/acquisition devices and the other to our corporate network, without any problems, although it's not two LabVIEW programs talking to each other. The acquisition devices and the card that talks to them all use reserved internal addresses (10.0.0.x) independent of the corporate network subnet.
04-01-2009 09:54 AM
Thanks for the info.
The network with the computers in question has just those two computers on. So I will configure them as per your post and try and get that to work.
Thanks again for your help!
paul
04-02-2009 02:39 AM
Thanks Nathand and Ben for your help. Everything is working great now.
I assigned the ip addresses 10.0.0.x to the computers (windows updated the subnet mask to 255.0.0.0 which I left), checked the connection with some pings and ran my application which gloriously came to live without error! 🙂
(All with the other network card enabled and connected.)
Many thanks!
Paul.