LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot Communicate with Datasocket Servers on Private Networks

I have not had the opportunity to confirm nor deny the reports I'm getting about an application that I've built and distributed, but let me give you the details and I'd like to know if anyone has heard of this and might be able to give me some words of wisdom.
 
I have a rather simple program that uses a datasocket server to publish data that multiple client computers read (the clients are ONLY readers, and the host is the only writer).  The computers are all connected to a 4-port router, and the computers within the network can ping each other, FTP files back and forth to each other, and can also share Windows shares (they're all WinXP computers).  These computers have their firewalls completely turned off, and the router has no built-in firewall; my contacts have tested 4 different models of routers and get the same behavior on all 4 of them. 
 
Anyway, on a closed network where the router is NOT plugged into the internet, the client machines cannot communicate with the Datasocket server via dstp (or any mechanism thereof).  To communicate with the datasocket server, I use the raw IP address of the computer, like:  dstp://192.168.1.100/namespace/variable.  When the software attempts to make the connection, errors saying the datasocket server/variable does not exist spew out.  Remember that machines on this network can ping each other, communicate with each other via windows shares, and can even FTP files back and forth.
 
Once a live internet connection is plugged into the router, everything seems to spring to life.  All communication with the datasocket server immediately begins working (when it is attempted to connect again). 
 
I initially thought the problem might be related to a stale DNS server entry in the network configuration, but even after resetting the router (so that the router has default values and points to itself for DNS lookups) the problem still exists.  They've rebooted the computers connected to the router NOT on the internet to make sure all the new network values are taken, and still no luck.
 
Has anyone run into this and found a workaround?  Unfortunately where we need to set up this network is not near a live internet connection, and we're beginning to be SOL if we cannot find an adequate workaround.
 
Thanks!
-Danny
0 Kudos
Message 1 of 6
(3,940 Views)
What happens when you use just a hub instead of a router?  Try setting up the computers with static IP addresses (be sure to have them all on the same domain) and try it again.  Also remember, the PUBLISHER must be on the same 'puter as the datasocket server.
 
Eric
 
 
Message 2 of 6
(3,934 Views)
I had somewhat related problems with a PXI and a compact Fieldpoint that I had to keep taking on and off our company LAN for various reasons.  I needed to use DHCP when they were on the LAN, and statically assign IP address when off.
 
Are you sure that the router is tracking the computer names in its DNS?
 
Do the 4 computers have their IP addresses assigned dynamically by the router or are they set statically?
 
Try pinging or using tracert between the computers using the computer name rather than IP.  If you use ping thatcomputer, it will tell you the IP address of that computer in the return.  Likewise for tracert.  If ping or tracert do not return anything by using the name, then the computer you are on is not able to resolve the name into an IP address.
 
If they are static, try putting the the IP addresses and the computer names of all 4 computers in each of their host files.  I believe the computer looks there to match an IP address with a name before it moves on to look for it in a DNS server.  The file is called hosts (no extension) and is in C:\WINDOWS\system32\drivers\etc.  It can be edited with Notepad.
 

Message Edited by Ravens Fan on 12-04-2006 10:51 PM

0 Kudos
Message 3 of 6
(3,928 Views)

I have some more information on this problem -

1.  If I give the computers static IP addresses and move to a Switch or a Hub, the problem goes away.  However, I don't know of any wireless switches. 

2.  I have given the router (Linksys WRT54GC, and others) almost every configuration I can - static IP's, dynamic IP's, I reset the router to factory configurations, disabled everything, enabled everything, and no matter what I do I cannot get even a steady wired connection between 2 computers using a router. 

I am usually able to connect to the datasocket server, but my data coming from the datasocket server is VERY slow and very spotty.  My data becomes stale and is not refreshed any more.  The most odd thing about this is that when I connect the internet to the router, and retry the connection, it works great.  Or if I use a switch or hub it works great too.  If it was one particular router I might be able to lay blame on something simple, but I am getting reports about several routers having these problems.

Any additional ideas?  Comments?

-Danny

0 Kudos
Message 4 of 6
(3,901 Views)
Danny,

This definitely seems like an issue with your router/configuration -- unfortunately after searching around I don't have much to offer, but here are a few thoughts --

Is it possible that the router is somehow dependent on its uplink port being connected? Have you searched the router's configuration utility/KnowledgeBase for anything that sounds like this issue?  Could it be possible to disable this?  Is it possible that some application, whether on the router itself or an application on your client PCs is constantly trying to ping something on the internet and hogging bandwidth because a connection cannot be established?

I was a little confused by these two statements which seem conflicting:

"When the software attempts to make the connection, errors saying the datasocket server/variable does not exist spew out."

"I am usually able to connect to the datasocket server, but my data coming from the datasocket server is VERY slow and very spotty.  My data becomes stale and is not refreshed any more."

Are you still getting errors as mentioned in the first statement? If not, what changed?

One thing that may be of use is to use a low level traffic monitoring utility like Ethereal and compare packet types and volumes when the Internet is connected and when it is not.

Message Edited by Doug M on 12-15-2006 04:28 PM

Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me 🙂
0 Kudos
Message 5 of 6
(3,881 Views)

I have this problem!

There are some solutions?

0 Kudos
Message 6 of 6
(3,623 Views)