LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

UDP sending on Wireshark

I've just started using the UDP sender and receiver example VI's. When I try to send a message to my device, Wireshark asks Who has [ipaddress of the device], and it never gets a response back.

I'm quite sure the IP address and port numbers are correct, since I can communicate to my device through a C sharp program, and now I'm just rebuilding it in Labview.

 

Is there a reason that Wireshark can't find the MAC address of my device?

0 Kudos
Message 1 of 5
(6,168 Views)

Are you actually using Wireshark to send UDP packets or are you just sniffing the network? Any device will need to send an ARP request to determine the MAC address for a given IP address. What are the IP addresses of the devices that you are using? How are they all connected? Is Wireshark running on the same PC as your program?



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 5
(6,140 Views)

Well I think I'm sending it through wireshark. And yeah wireshark is on the same computer as my program.

 

I'll attach the simplest version of what I've tried implementing. I'm just basing it off the labview examples. I know the device is physically connected just fine because the C sharp program works on it.

 

Edit: Does the input of "local port" need a specific value? 

0 Kudos
Message 3 of 5
(6,128 Views)

You can't use port 0 as your port. It is reserved and not available for use. You need to choose a different port number that the other device is listening on. Also, you do not send UDP "through" Wireshark. It is simply a tool to sniff packets on a network. It is not involved in the communication chain. Are you sure you have the correct IP address? Ultimately, what are you trying to talk to?



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 4 of 5
(6,116 Views)

Port 0 is just fine an instructs the function to pick a free ephemeral port. This is sufficient for outgoing connections. The receiving end will know the source port and can reply to whatever that port is.

 

Only the server side (the other end here) needs a defined port, but that's targeted on the UDP write function in this example.

0 Kudos
Message 5 of 5
(6,103 Views)