Questions tagged [udp]

User Datagram Protocol is one of the messaging protocols of the IP protocol stack. With UDP, computer applications can send messages to other hosts on an Internet Protocol (IP) network without requiring prior communications to set up special transmission channels or data paths.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

Using NGINX as UDP load balancer at high rate [closed]

I’m running nginx on Kubernetes and I want to use it as a UDP load balancer at high rate. nginx.conf: user root; worker_processes auto; events { worker_connections 1024; } stream { ...
ali hodaei's user avatar
0 votes
0 answers
13 views

UART/UDP communication in c++ with integers

I would like to ask about UDP and UART communication in c++. I am using libraries sys/socket.h, fcntl.h (for uart) and netinet/in.h for udp, but instead of string I would like to send an array of ints,...
Nick's user avatar
  • 1
0 votes
0 answers
8 views

Trying to run UDP client server program in python involving a broker(the server), a producer(client) and a subscriber(client) with docker containers

When I run the containers and then run the corresponding python files in their terminals they don't communicate with each other like they are supposed to. I am confident that my docker networking is ...
JohnD's user avatar
  • 1
-1 votes
0 answers
10 views

Can I simulate multiple broadcast-based hosts on a single macOS machine using different IPs?

Motivation I'm writing software that should interoperate with some equipment that communicates via UDP broadcast on port 8592. I can test by running my software on my MacBook and plugging in n ...
Chris Merck's user avatar
0 votes
0 answers
38 views

Fast and reliable transport protocol for streaming text [closed]

I am looking for a fast and reliable protocol for streaming big amount of small text data in real time (text strings might be between 20 and maybe 500 bytes long). I do not care about order and when ...
maxsand's user avatar
0 votes
0 answers
6 views

How to connect two devices connected over internet and behind a NAT

The situation is that I am trying to connect two local devices which are behind a NAT ( possibly a strict NAT ) to share images and text. I also have a VPS that is having a public IPv4 address ...
Arjit Malik's user avatar
0 votes
0 answers
7 views

openvpn keep connection alive on client down?

My internet is randomly dropping for 1 or 2 seconds, which is enough for me to get disconnected from online matches. Is it possible to configure an openvpn so that the connection somehow remains ...
Cardeal Russo's user avatar
0 votes
0 answers
23 views

How to receive multiple packets using UdpClient class?

First of all, sorry for my bad english. I made a simple client/server program using UdpClient in C#. I have a problem. In order to send a big file (like a pdf for exemple), I use this code on client-...
Gabriele Troviso's user avatar
0 votes
1 answer
44 views

Simulation of Wired Network in OMNET++ using INET framework - UDP

So, I am trying to do a very basic wired network simulation (later on I will add wireless nodes) in OMNET++: packet type: UDP Traffic Type: Video Streaming OMNET version:6.0.1 INET version: 4.5 The ...
nisar007's user avatar
0 votes
1 answer
10 views

How to get FD on datagram socket?

Before java 17, we could get the FD on a datagram socket like below trick with reflection, in order to set a socket option for SO_PORTREUSE using a kernel API. But the implementation changed in ...
diesel10's user avatar
1 vote
1 answer
25 views

Cannot receive UDP packets after using async_receive_from on Linux, but can work on Windows

I'm now writing a C++ program which uses UDP to send and receive message with a hardware device. That program works well on Windows but when I put the same code on Linux(Ubuntu 22.04 LTS), it works ...
Jiahao Zhu's user avatar
0 votes
0 answers
15 views

Configuring Aeron to Send Messages to Randomly Selected Replicas of a Service in a Dynamic IP Environment

I'm working on a setup where we have one producer and a consumer, but the consumer may have multiple replicas deployed on different hosts, all sharing the same network. We need the producer to send a ...
hft654's user avatar
  • 51
1 vote
0 answers
63 views

UDP receiving buffer wrong size

I am trying to determine a udp receiving queue size in cpp. The code that I am using is the following. To my understanding, the kernel will trying to set the buffer queue to either the minimum ...
Sergio Prieto's user avatar
1 vote
1 answer
35 views

Boost.Asio UDP socket, An invalid argument was supplied error

I am trying to create a thread to listen for UDP responses in c++ using the Boost ASIO library, this is my definition for the receive thread in my class file: tello::tello(boost::asio::io_service& ...
Ethan James's user avatar
0 votes
0 answers
16 views

UDP blocking for 3 seconds when sending to different unreachable ips

I'm trying to write a udp server that sends and receives udp packets. The server is supposed to work with DNS and multiple ip addresses when possible, so my idea was to simply send the packets to all ...
Ferdinand S's user avatar
0 votes
0 answers
17 views

How to send UDP packets from Windows to GNU Radio running on WSL

I am using GNU Radio 3.8 on Windows, executed from WSL. I want to send UDP packets from the Windows environment to a GNU Radio UDP Source block (that uses localhost 127.0.0.1). I know that the ...
raff5184's user avatar
  • 354
0 votes
0 answers
18 views

how to configure apache to receive a TCP/UDP packet on port 8082?

I'm trying to configure my apache server to receive TCP/UDP traffic. I understand that this is not a regular http call, but I am not very seasoned in this area. For now all I want to do is to verify ...
Matt Welander's user avatar
0 votes
0 answers
13 views

Potential UDP data loss or wrong Python syntax

I am doing a project involving UDP from teensy 4.1 to PC. After some experiments and help from forums I managed to acquire data on teensy and send to the PC via regular Cat5e twisted pair cable. The ...
Vilius Žalėnas's user avatar
0 votes
1 answer
26 views

UdpClient does not receive any messages

I want to display every UDP Broadcast Message my PC receives on a specific port. I've wrote this simple .Net 7 Console app: using System.Net.Sockets; using System.Net; using System.Text; UdpClient ...
Neralem's user avatar
  • 101
0 votes
1 answer
53 views

Send RAW video via UDP using GStreamer

I'm trying to use gst-launch-1.0 to send RAW video data from an .avi file through UDP from one computer on my network to another, so I can finally save it as a .y4m file. The pipeline on the source ...
dandan13's user avatar
0 votes
0 answers
12 views

Okay I just downloaded this VPN source code from get up and it is not working I'm not understanding it's supposed to be a UDP VPN

Main activity.java package com.metehan.myvpnservice; import android.app.Activity; import android.content.Intent; import android.net.VpnService; import android.os.Bundle; import android.view.View; ...
Rickmiles 's user avatar
0 votes
1 answer
45 views

How can I view the live view of a Camera via WLan using Python - Solved

I have a Panasonic camera (DC-FZ82) that is able to transfer a live view over its own WLAN. I have written a program that sends http requests to the camera (like this: http://192.168.54.1/cam.cgi?mode=...
Tobias 's user avatar
1 vote
0 answers
19 views

Docker service communicaion using UDP broadcasts

We are building a system with multiple micro services that are forwarded by a gateway. For service discovery we are using our own solution that listens to UDP broadcast messages from services. It all ...
dr4cul4's user avatar
  • 268
1 vote
0 answers
25 views

Multiple PDU Types Possible in SNMP Packet?

I have been using SNMP for a couple of months now but am still relatively new to the intricacies of the specification. Is it possible to put multiple types of PDU's in an SNMPv1/v2/v3 packet? For ...
WakkaTrout's user avatar
0 votes
1 answer
56 views

Changing JavaFX-Label Text in an small Client - Server Application

Ive created a small client-server prorgramm which works as following: A Client sents all five seconds a random number to a server which sends then sends a (more or less famous) quote back to the ...
Thriest's user avatar
  • 46
-1 votes
0 answers
45 views

PC does not receive UDP packets

I am doing a project where I need to send data from Teensy 4.1 dev board to PC via UDP. After some research and help from forums I managed to write a code for Teensy (for now I was just testing the ...
Vilius Žalėnas's user avatar
0 votes
0 answers
41 views

Dart RawDatagramSocket server

I came across this code that lets you send messages over LAN and it works fine on other platforms apart from mac os. On mac os, I can broadcast messages fine, but I'm unable to receive messages back. ...
thecoder.co's user avatar
0 votes
1 answer
41 views

UDP dial falied: address already used [closed]

I'm writing a program to fetch a udp server. When i first fetch the server it works. But when i input the program second time. This gives me this error panic: Listen failed:dial udp :8829->:9781: ...
TM Ahad's user avatar
  • 21
0 votes
0 answers
31 views

Increasing buffer size in setsockopt not reflected during runtime in WIndows

I've been trying to increase the size of the socket buffers (specifically the receive side buffers for UDP packets) using the winsock2 setsockopt function as such: u_long iMode(1); handle = socket(...
Valdez's user avatar
  • 46
1 vote
2 answers
39 views

Multiprocess UDP server program in Python behaves differently on Linux and MacOS

I have a multiprocess UDP server in Python (see below code). It correctly spawns required amount of processes. On Linux, it load balances the UDP data between different processes properly but on MacOS,...
Kapil Singaria's user avatar
1 vote
0 answers
28 views

Why am I missing data when I receive packets over UDP?

I'm trying to receive data over a UDP connection from another app running locally but I don't seem to be receiving all the data that is being sent. I believe it's because I'm receiving the data in a ...
Eind997's user avatar
  • 359
-1 votes
0 answers
21 views

How to reduce jitter in gstreamer udp multicast. I can't make it less than 140ms. And who makes it so big. Demultiplexer or multiplexer. ffmpeg work

I need to feed a udp multicast stream to gstreamer. Make the conversion to audio without touching the video and output it again to udp multicast. The design is simple and it works. But the output is a ...
Slava's user avatar
  • 1
0 votes
0 answers
16 views

Read UDP port telemetry using python

How can I read data from Assetto Corsas telemetry UDP port (9996) from a remote computer and print it in python? I've tried reading using sockets but I dont think this is possible as my code will not ...
resuther's user avatar
-1 votes
0 answers
91 views

remote IP's in netstat for udp in windows : where to get them and why are they weird?

Despite UDP being "connectionless" it is possible to call connect() (see Can you bind() and connect() both ends of a UDP connection) on a UDP socket and associate that socket (at least at a ...
capveg's user avatar
  • 55
0 votes
0 answers
57 views

UDP socket set DontFragment (DF) field in outgoing packets - will it catch the ICMP "packet too large" respnses?

I'm using UDP socket to send data to a remote connection and i'd like to implement PMTUD (path mtu discovery) on top of it. So I set the DF bit on the socket which trigger the appropriate bit in every ...
Zohar81's user avatar
  • 4,640
0 votes
1 answer
66 views

Cannot send UDP datagrams to server even with port forwarding

I have a client and server application in C++ where the server is designed to 'listen' on port 44888 for incoming packets using a UDP socket and output any messages received. The client is designed to ...
Grant Upson's user avatar
0 votes
0 answers
39 views

How to make UDP protocol for video streaming works on Windows 11?

The VLC player on Windows appears to have broken behaviour when streaming over different protocol. Here is an example: CAMERA="USB2.0 HD UVC WebCam" SIZE="640x480" HTTP="#...
tribbloid's user avatar
  • 3,958
0 votes
0 answers
9 views

Can Twisted be used as an interface between web/http and UDP?

I have a network device that speaks UDP. I want to develop a web front end for it. Can I use twisted to implement an API that will then send a UDP packet, wait for a reply, and then display the ...
reza's user avatar
  • 1,329
0 votes
0 answers
26 views

Can I constrain UDP communication to LAN only?

I have multiple apps setup to work in a LAN over Wi-Fi. In order to handshake (establish communication) automatically I'm using UdpClient to broadcast the server address. The server is running on ...
Alex's user avatar
  • 715
-1 votes
1 answer
39 views

Send a message (or packet) to another trusted machine and have it buffer the message until process is ready

I have two trusted machines that are connected, call them 192.168.0.10 and 192.168.0.11. Let's assume both machines are running Linux. Is it possible for me to send a message from 192.168.0.10 to 192....
VijayT's user avatar
  • 1
0 votes
1 answer
41 views

Send data to specific client using UDP

I am making a gateway server which sends and receive data between devices and a backend. I have to use UDP to communicate with the devices because that is an implemented technology. The devices have a ...
agustinlezcano's user avatar
0 votes
0 answers
21 views

What security concept should I add to protect my game server that run UDP socket?

My android client first connect to my python server via TCP connection and get an ID from the server. Afterwards, player send messages to UDP socket along with that ID to play the game. I don't think ...
Czhak's user avatar
  • 1
1 vote
1 answer
39 views

confused about async_compose function in boost asio

I was trying to learn something about writing my own async function based on boost asio, so i try to implement a async ntp query function: #include <cstdint> #include <iostream> #include &...
sheldon's user avatar
  • 13
0 votes
1 answer
60 views

SwiftUI & UDP listener - data not updating in the ContentView

I have an app where I have to receive a string over the network and the string is being sent by an Raspberry Pi Nano over UDP protocol. I took an example from an article where there is a setup for ...
bacata.borisov's user avatar
0 votes
1 answer
26 views

How does a gateway forward UDP multicast packets?

I implemented test programs to send/receive UDP packets through multicast using 224.x.x.x IP address. The server and the client are in the same 192.x.x.x/24 subnet and the server receives UDP packets ...
fiedel's user avatar
  • 53
0 votes
1 answer
31 views

Can a UDP socket hang on "connect" in Python

Say I have this program in Python the "connects" a UDP socket: import socket sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.connect(('8.8.8.8', 53)) Can the call to connect ...
Michal Charemza's user avatar
2 votes
2 answers
270 views

I'm not quite sure which side is the cause that my android app can't receive a UDP "message" from a Golang server

I'm currently developing a server and app that needs to communicate using UDP. My server uses Golang, it's related code looks like this: import ( "flag" "fmt" "net&...
rminaj's user avatar
  • 449
0 votes
0 answers
20 views

How to set DSCP in IP header for UDP socket in Windows

On my receiving device, it needs to have the DCSP field set to 0xff in order to properly receive and deal with incoming UDP packets. On Linux, I can set IPPROTO_IP, IP_TOS, and everything works as ...
Charles Lohr's user avatar
0 votes
1 answer
15 views

Java DatagramSocket - client receives only first character

I have a problem with Java UDP connection... The goal of this code is to send to server two adders. The server responses sending the result of the sum. Client public class Client{ public static void ...
BeArt's user avatar
  • 15
0 votes
2 answers
55 views

"Fatal error: QUdpSocket: No such file or directory" in VSCode

I'm struggling with my C++ code because I'm kind of new with big projects and the use of CMake. I'm having that compilation problem and I don't know how to solve it because all the solutions online ...
Icksir's user avatar
  • 103

1
2 3 4 5
214