LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

The specified network address is currently in use.

I hope someone out there can help me because I have tried just about everything I could find in this discussion forum. I have data bits streaming in from another computer on the same local network. I have used a TCP Open connection VI and have set the IP address and the Port to where the data is coming from. I use a packet sniffer so I know that the data is being streamed in. I have set the VI server: Configurations to allow TCP/IP and even assigned the port but for some reason I always get this error “the specified network address is currently in use”? Does anyone know what I could be doing wrong? Smiley Sad
0 Kudos
Message 1 of 5
(5,415 Views)
I ended up using a UDP which is giving me parts of the packets but not all of it.
0 Kudos
Message 2 of 5
(5,412 Views)
The VI Server would only come into play if you're want to programmatically control your VI from another computer. Since you're not doing that, the settings here don't matter. You said that the data is coming from somewhere else. Are these broadcast packets? Or, does the other end work by having a listener that waits for a connection? Can you provide a snapshot of the results of your packet sniffer?
0 Kudos
Message 3 of 5
(5,407 Views)
Hey thanks for such the quick reply but I found out that i was told it was TCP/IP but I decided to test the UDP connection and that showed me the bytes that I needed only it will read them in as a string.
0 Kudos
Message 4 of 5
(5,397 Views)
Well, UDP and TCP are both part of TCP/IP, so that's fine. TCP/IP != TCP. 😉
 
All you get is a string, because to the network it's just a stream of bytes. You program needs to unflatten it to whatever you think it is supposed to be. 🙂 (this is similar to reading from a file, which is also just an ordered bunch of bytes). 😮
0 Kudos
Message 5 of 5
(5,383 Views)