Jump to content

Recommended Posts

I receive UDP error 54 when trying to open IP address and port.

LabVIEW is running on 192.168.2.10 and another application(not written using LabVIEW) is running on 192.168.2.4. Application on 192.168.2.4 is configured to send the data to 192.168.2.10. So first three UPD open and last UDP open is working and labview is able to open the port on the same ip labview application resides which in this case is 192.168.2.10.

It returns error 54 when UDP open tires to open port at 192.168.2.4?

As the error stated to ping, the ping snapshot is when done from 192.168.2.10 pc.

Does anyone know why would Labview UDP open work for only localhost (198.168.2.10 same pc where labview is running) and not able to open UDP connection for 192.168.2.4?

TIA.

post-9853-0-89557200-1314053901_thumb.jp

Link to comment

You cannot open a UDP port on a remote machine because UDP is stateless - there's no established connection. You supply the remote address at the time that you send data, and if the remote machine happens to be listening on that port then it might receive the data. The only reason to open a UDP port is to listen, not to send, and the address input exists for the case where a machine has multiple network cards and you only want to listen on one of them.

  • Like 1
Link to comment

I can't add anything to ned's reply, but did want to mention that a common mistake to watch for (I make it all the time, and you even made it near the end of your post) is to type 198 or 162 instead of 192 and 168.

Does anyone know if there's a psychological basis for this error? :P Seriously, what is it about these numbers that makes them so prone to mix-ups?

Jaegen

Link to comment
  • 9 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.