10,693 questions
2
votes
3
answers
111
views
sendto behaviour with IP address set to 0
I stumbled across this yesterday. Consider the following program,
which uses sendto() to send an UDP message to a network address
(inside a struct sockaddr_in) that is not set (with the full
struct ...
2
votes
1
answer
59
views
Incorrect report of SO_TIMESTAMP on macOS UDP socket with recvmsg()
I use the socket option SO_TIMESTAMP to get kernel timestamps on received UDP datagrams with recvmsg().
It works well on Linux, not on macOS. In practice, it seems that macOS does return the timestamp ...
0
votes
0
answers
91
views
BSD UDP: When do socket descriptors become invalid due to OS intervention?
I'm working with Linux UDP sockets and need to identify scenarios where socket descriptors become invalid due to OS intervention rather than application errors, i.e. where the application can get ...
1
vote
0
answers
71
views
Can't send data through UDP via Wi-Fi, Returning 0 Bytes sent
I want to send data to esp32 via WiFi using UDP, but it'S returning 0 bytes (as 0 bytes sent)
For Esp32 I tried with another device (different mobile app), and it's working fine.(Esp32 is OK)
Here is ...
0
votes
0
answers
60
views
Node.js WebRTC server on Azure App Service fails STUN discovery (srflx candidates) despite open NSG ports
I am building a Node.js WebRTC media bridge (a Back-to-Back User Agent or B2BUA) that connects a browser-based client to the WhatsApp Calling API. The backend is hosted on an Azure App Service for ...
2
votes
0
answers
71
views
high rate udp data plotting in pyqt5
I am trying to develop a gui to receive data over udp with rate of 72Mbit/s. I am using the pyqtgraph to plot the data of 10 channels. but after receiving some packets, the widow freezes and it seems ...
1
vote
1
answer
126
views
UDP multicast stream suddenly stops for 1-30 secs and automatically starts again
I am trying to receive an UDP multicast data stream with an UdpClient (C# on .NET 8). The messages are binary encoded messages, size approx. 90 bytes each, approx. 50-60 messages per second.
Receiving ...
1
vote
0
answers
260
views
UdpSocket drops packets with low read_timeout
I'm using Rust's std UdpSocket to send data from one socket to another one locally.
It all works fine if I set no read timeout or if I set a "big" read timeout like 10ms. Once I set the ...
3
votes
2
answers
125
views
Does UDP receive messages in a queue-like format?
I have two programs set up to mimic two machines that will be communicating using UDP (I know TCP sounds better in this situation, but the manufacturer for one of the machines made it such that ...
0
votes
0
answers
73
views
Use netcat to capture UDP4 snmpget request
I want to capture snmpget message in my Ubuntu machine using netcat
I ran the following commands in the order shown below.
I am using netcat-openbsd.
nc -lu 127.0.0.1 1161
pip install snmpclitools
...
2
votes
2
answers
103
views
UDP C# communication dummy model
this is my first time asking a question so please pardon me if I have missed out on any info. I am quite new to using UDP and other socket communications on C# so i am quite stuck on this.
I am trying ...
-1
votes
1
answer
71
views
How to handle a fragmented UDS/UDP message? [closed]
I'm building a high velocity distributed database in Rust, using io_uring, eBPF and the NVMe API, which means I cannot use 99% of the existing libraries/frameworks out there, but instead I need to ...
0
votes
0
answers
102
views
Why can "data = QByteArray(buffer, bytesRead);" disturb qDebug(), in Qt?
I am learning UDP communication and I face a problem:
The program crashed when I ran the code:
void udpCommandComm::slot_udpRecvBroadcast()
{
char buffer[1024];
QByteArray data;
// ...
0
votes
0
answers
43
views
With sendmsg using multiple iovecs on a datagram socket, does it send multiple packets?
sendmsg supports passing in multiple data buffers via struct iovec. If sendmsg is used with a datagram socket (e.g. UDP), do the multiple data buffers get combined into one datagram, or does sendmsg ...
2
votes
1
answer
71
views
Python UDP communication stalled
I'm trying to implement Pyhton to send and receive data. Before I started with the Python implementation I checked that what I wanted to do was working properly. A device connected to my computer via ...
1
vote
2
answers
206
views
How can I send UDP data over the loopback interface so that Wireshark can dissect it without ICMP errors?
Initial Problem
I had what I thought was a simple task in Golang: format some data according to one of Wireshark's dissectors (MAC-LTE) and then send it over UDP so that it could be viewed in ...
1
vote
1
answer
133
views
Windows RIO/UDP with IOCP: Issue in getting GetQueuedCompletionStatus to work
I have a console app where I'm working through setting up a UDP listener using RIO. I started with simple polling to test the flow between a simple console client and the console app/server. I can ...
0
votes
0
answers
61
views
gstreamer does not allow my application to make multicast endpoint
I have this gstremer pipeline which is started by Qprocess in Qt Application:
gst-launch-1.0 rtspsrc location="rtsp://admin:[email protected]:554/sub" ! rtph264depay ! h264parse ! mpegtsmux ...
0
votes
0
answers
33
views
How to automatically determine source IP for raw UDP packets? [duplicate]
i want to send data via UDP raw sockets with Winsock.
I already implemented that and it is working fine, however, at the moment, i'm using a hard-coded source IP, which is the local IP of my WiFi ...
0
votes
0
answers
108
views
Python not receiving UDP packets
I have a Python application which wants to receive UDP packets like this:
with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as s:
s.bind((ip, port))
s.settimeout(0.1)
while self.shall_run:...
0
votes
0
answers
28
views
Oracle instance: UDP flow interrupted under certain conditions
I'm trying to send and receive udp packets to a lte modem ( UDP is obligatory, no TCP) and its doing it just fine in some configuratiosn but not in others. When i send it every 1min it works fine for ...
1
vote
0
answers
81
views
How to read the latest data with UDP socket in SFML?
I want to figure out how to read the "latest" data from a udp socket. As in my client reads data using SFML's udp socket but it reads old data. I read up that you should try flushing the ...
-2
votes
1
answer
65
views
C++ Winsock UDP Port Wont Bind
I'm writing a bit of code that can listen for UDP messages via Winsock.
The port bind works on local loopback (127.0.0.1) but when I try to change to any other IP the bind fails.
Is there something I'...
0
votes
2
answers
76
views
Monitor TCP/UDP port activity without binding
I'm trying to write a script/program to monitor for network connections to an existing process so that I can issue SIGSTOP/SIGCONT, docker (un)pause, etc, whenever there are no active connections to ...
0
votes
0
answers
29
views
UDP User Protocol with 0 timeout recv() - Possible race condition?
I'm trying to debug a new issue that's cropped up in a new distro of our software. I've got a theory for what's going on, but I'd like to run it by people who know how UDP works.
We have a custom ...
0
votes
0
answers
28
views
Code building an async UDP server lifted from boost::asio documentation not working due to std::bind. Why instead does it work fine with boost::bind [duplicate]
I have tried to run code building an asynchronous UDP server. The code is taken directly from boost::asio documentation example, which I reproduce below:
#include <array>
#include <ctime>
#...
0
votes
1
answer
62
views
Windows CPU Scheduling, "Post-Wireshark" UDP receive latency?
I have developed a C# program that receives UDP packets and writes the received data to a queue on thread A. The program reads from the queue, performs some data processing, and then sends another UDP ...
-1
votes
1
answer
137
views
How to send zeek logs to a port via tcp or udp?
I have zeek installed in centos 9 stream , i want to send the logs generated to a specified port via tcp or udp as i need this to send logs to a collector configured in a SIEM , is there a zeek script ...
2
votes
1
answer
88
views
Does connect() ever fail with WSAEWOULDBLOCK for UDP (SOCK_DGRAM) sockets?
When using Winsock with TCP connections (SOCK_STREAM, connection-oriented), calling WSAAsyncSelect puts the socket into non-blocking mode. A call to connect at that point will generally return with ...
0
votes
0
answers
133
views
UDP communication using twincat 3
I am using TwinCAT 3 to create a UDP communication between a pc and a light sensor that only uses UDP protocol to exchange data. I used this code : https://github.com/Beckhoff/TF6310_Samples/tree/...
0
votes
0
answers
37
views
Receive Broadcast UDP Datagram Packet
An application running on the iPad is sending out a broadcast message once every 10 seconds on Port 6122. The goal is to read this message in my Laptop. I'm running the below C# program in my Laptop....
0
votes
0
answers
22
views
hwo to set the ttl for the pkt generate by pktgen
I am trying to use the pktgen to generate the test pkt to fullfill a task
I am using the testing script from https://github.com/torvalds/linux/tree/master/samples/pktgen
using the command like this
...
1
vote
0
answers
71
views
Quectel BC68 Problem with receiving UDP packets
I’m trying to send and receive UDP packets to my server. As far as sending the packet is concerned, it’s no problem. But when I try to receive a packet nothing ever arrives. In the photo you can see ...
0
votes
0
answers
74
views
Go UDP Server on Managed macOS 15.2 with Firewall Enabled Causes 'sendmsg: broken pipe' with Control Messages alternatively
I have a Go UDP server that listens on a specific IP and port (100.99.152.25:53). The server receives DNS queries and responds with a hardcoded DNS response using WriteMsgUDP. However, when both of ...
0
votes
1
answer
169
views
Gstreamer create RTP stream
I want to use gstreamer to package and stream h264 video frames. The udp method succeeds, but the tcp method does not work. What is my problem?
This is a rtp client program. The following is the code ...
0
votes
1
answer
48
views
Broadcasting UDP messages across local network
Until a couple of days ago I had some software that was broadcasting udp messages to a port, which a different machine on the local network was receiving.
It seems like that process has stopped ...
1
vote
1
answer
40
views
Java DatagramSocket not receiving DatagramPacket (eg. Oracle QuoteServer/-Client)
I tried implementing my own server and client classes in Java which only worked with my desktop as the server, laptop as the client and never with desktop as the client.
This is why I tried using the ...
0
votes
0
answers
20
views
vb.net Receive UDP from randomly chosen port numbers [duplicate]
Newbie into the UDP/network world 😇
I have a device where I can send a string to and it replies with a reply string.
For example, I send "Discover" and it returns "Device name".
I'...
1
vote
1
answer
111
views
Using Indy10, UDP server return response being sent by a different IP
I finally resolved today why simple UDP client/server text communications to a server was producing an error. The server has 2 IPv4 addresses. I was sending to one of the IP addresses and ...
2
votes
1
answer
80
views
Can I bind ip and port to receive mulitcast traffic from a specific network interface
On Linux, I want to receive multicast traffic only from a specific interface. So I bind the interface and port to socket, then join the multicast group by setsockopt with IP_ADD_MEMBERSHIP option. ...
0
votes
0
answers
31
views
How should a server Connection class be implemented to support TCP and UDP connections?
I'm trying to implement the MAVLink protocol in Java. After testing that I can read and write messages properly I would like to create a Connection class that handles the information process, however, ...
0
votes
0
answers
30
views
How can I get a response back from my server running a udp socket between my server and home?
I have a c# udp socket I'm trying to send data from to my home. The server socket is hosted at aws, and the client is at my house. Using the UDPSocket.cs example on GitHub, I modified the code to ...
1
vote
0
answers
43
views
not receiving audio stream on web RTC
making a web rtc video call app, have got the basics set up but facing this specific problem
joining the call with 2 different devices one laptop and one phone
now I've joined with laptop as device 1, ...
0
votes
0
answers
101
views
Docker Networking Question - Outbound UDP Messages not using the Port defined by the UDP Port Rule with Bridge Networking
The following forum post generally describes my same issue:
https://forums.docker.com/t/docker-networking-question-udp-ports-being-re-written-on-outbound/64746
My Docker container runs a data ...
1
vote
2
answers
445
views
ESP32 Successfully Sends UDP Packets, but .NET Program Fails to Receive Them
I have been trying to set up a simple UDP handshake function on an ESP32 that broadcasts packets over my local network on a specific port, so a .NET application running on a PC (Win10) on the same ...
1
vote
1
answer
210
views
BAC0: "RuntimeError: no running event loop" when connecting to a foreign device
I am trying to connect to a BACnet foreign device using the BAC0 Python library. Below is my script:
import BAC0
print(BAC0.version)
bbmdIP = '10.x.y.z:47808' # Replace with actual IP
bbmdTTL = 900
...
1
vote
1
answer
167
views
Why don't UDP hole punch packets successfully establish a connection?
I’m currently working on creating a UDP hole punching program in python. So far, I’ve managed to successfully retrieve my public IP address and public port using a STUN server with pystun3. I’m also ...
0
votes
1
answer
149
views
Golang - Is there a way to send "http" request message using UDP standard functions?
I am trying to work with UDP and Golang. Because my horizons are microcontrollers, where Go packets (TinyGo) are not completely supported, I need to use as minimal amount of packets as possible.
So, I ...
0
votes
1
answer
85
views
UDP send rate on F1 UDP and Serial Port
Im building an steering wheel to play F1 codemasters games.
Those games have the option to send telemetry through UDP.
https://answers.ea.com/t5/General-Discussion/F1-23-UDP-Specification/td-p/...
2
votes
1
answer
146
views
Issue with netcat-tarditional and docker
I have a bash script in my docker container that use netcat to receive a datagram from a raspberry with this command:
msg_port=60001
nc -k -u -l -p $msg_port >> /data/hydro/info.txt &
Now, ...