07-31-2021 09:41 AM
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.
07-31-2021 10:15 AM
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?
07-31-2021 11:38 PM - edited 07-31-2021 11:39 PM
Hi altenbach,
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.
08-02-2021 06:01 AM
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