LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using TCP/IP and UDP through same Ethernet

Hi all,

 

I need to build an application which can send command through TCP/IP, Data packets receiving through UDP and RTPS Video streaming through UDP using single Ethernet Cable simultaneously. I have tried TCP/IP and UDP simultaneously using single Ethernet cable. but I am getting error at UDP that 'Port is already in use'. Switching between TCP/IP and UDP should not happen here. I am using different port numbers for both TCP/IP and UDP. I have attached my Example codes which I have created. Please help me through this.

Download All
0 Kudos
Message 1 of 4
(1,679 Views)

Just a point about terminology: TCP and UDP are both part of TCP/IP. (Your post is somewhat confusing.)

 

Are sender and receiver separate devices or are you sending within the same computer?

Why are you wiring the local IP? Do you have multiple network interfaces? Which part exactly is generating the error you see?

0 Kudos
Message 2 of 4
(1,672 Views)

Hi ,

 

Sorry for that I made you confuse,

1. Instead of TCP I mentioned TCP/IP by mistake. 

2. Yes, Sender and Receiver on the Same device.  

3. I am trying to  establish 1-1 communication within two PCs for that I am using Local IP

4.  "Do you have multiple network interfaces?", I have WIFI and Ethernet (is it answer your question)

5. while trying to read the UDP data i was getting the error.

0 Kudos
Message 3 of 4
(1,641 Views)

Hi,

 

in your "Sender only write.vi" you try to open port 6341 in you UDP loop (on error UDP Read). That port is already in use.

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 4 of 4
(1,596 Views)