UdpClient (System.Net.Sockets.UdpClient) is a .NET-Class allowing to send and receive UDP-Traffic.
Questions tagged [udpclient]
575 questions
1
vote
0 answers
UDP Server handling multiple remote clients
Lately I've been experimenting with creating a multiplayer game.
In the game each client sends a UDP datagram to the server every time he moves.
Then every X seconds the server sends to all the clients the current state of the game so each client…

Emanuel L
- 101
- 8
1
vote
1 answer
Errno 99 - Cannot assign requested address
I am trying to connect to IP address to receive data. The IP belongs to an AWS ec2 instance and we opened a UDP port on the server.
Every time I try to bind, I get this error [Errno 99] Cannot assign requested address
UDP_IP =…

Isaac Sekamatte
- 5,500
- 1
- 34
- 40
1
vote
0 answers
Changing my UDP server to take the same request multiple times
I need the UDP_server to take the request("message") multiple times (5-6 time will be ok) to calculate the arithmetic mean of the recorded response times (the time required from the moment you send the message to the time the response arrives from…

Florin Ivan
- 11
- 1
1
vote
1 answer
how to get 100 accelerometer values per sec in flutter
I am new to flutter ,I am writing an app which stream values of accelerometer from my mobile to pc using UDP it is working but I am getting approximately 5 to 10 values per sec I want at least 100 accelerometer values per sec on my server here is…

Usama
- 159
- 1
- 13
1
vote
2 answers
Receive foreign UDP Broadcast with Python
I have a device in the network at 192.168.123.204 which broadcasts UDP datagrams(Artnet) as 2.168.123.204 to 2.255.255.255:6454. (The network address is 192.168.123.204 but the datagram is sent with 2.168.123.204 as source.) The address…

Leon95
- 73
- 8
1
vote
1 answer
Network example - IP address
I just started to learn about networking and follow the book by Kurose and Ross. They have the following snippets of python code to illustrate the UDP protocol.
The code for the simple client is given by
from socket import *
serverName = ‘hostname’ …

Alex
- 474
- 4
- 12
1
vote
1 answer
How to receive data through UPD socket in Android Application
I have read through a number of different posts and questions, and it seems to me that this should be relatively easy to get right. I managed to send a UDP packet to the correct (address, port) using one socket object but can only read the message…

user15276611
- 15
- 3
1
vote
1 answer
UDP multicast message is not able to send and receive between Docker conatiners
I am trying to send a UDP multicast message from my container-1 and trying to receive it on container2.I have linked container-2 with container-1 using --link option .I am using these sample codes for testing
multicastsend.py
import…

Pratheesh
- 565
- 4
- 19
1
vote
0 answers
Call to connect() fails with EINVAL
When calling connect in my program below, it fails with errno of 22 (EINVAL).
#include
#include
#include
#include
#include
#include
#include
#include
int…

jmcph4
- 197
- 2
- 8
1
vote
0 answers
Ubuntu 16.04 does not receive UDP messages
I have the following problem:
I have a UDP server on one computer (Ubuntu 16.04) and a client on another computer (Windows 10).
If I send messages from Windows to Ubuntu, it won't listen.
If I send messages from Ubuntu to Windows, it will hear…

OtavioOliveira
- 19
- 2
1
vote
1 answer
get local address for recieved data with UdpClient listening on any ip address
I have a UdpClient listening on IPAddress.Any. When I receive data (currently using ReceiveAsync, but I can change this if needed), the returned UdpReceiveResult has a field with the remote end point (where the message was sent from) but not the…

Baruch
- 20,590
- 28
- 126
- 201
1
vote
1 answer
Determine if SocketException from UdpClient.Receive was caused by a timeout
I have a UdpClient receiving data with a timeout set, e.g.:
UdpClient client = new UdpClient(new IPEndPoint(IPAddress.Any, 12345));
client.Client.ReceiveTimeout = 5000; // 5 second timeout
while (!shutdown) {
IPEndPoint source = null;
…

Jason C
- 38,729
- 14
- 126
- 182
1
vote
1 answer
C# UDPClient JoinMulticastGroup. What is the local address?
I'm new to this networking stuff to configure and I'm trying to understand the following code.
var Server = new UdpClient();
var multicastIp = IPAddress.Parse(_connectionParams[0]);
IPAddress localIp;
if…

Gopichandar
- 2,742
- 2
- 24
- 54
1
vote
0 answers
How can I make two applications on the same PC talk to each other via UDP on the same port via Broadcast
I'm trying to build a chat client and server that run on the same PC and communicate via UDP Broadcast (or loopback) on the same port. I am able to get the chat client to send the chat server a message, but when I try and reply, the client doesn't…

Derf321
- 11
- 2
1
vote
3 answers
How to call socket module properly in Python
I am building a simple UDP client, however, I am getting an error message "socket is not callable". I have checked the code and it can find the problem
I tried importing the module by using "from socket import *" but it didn't work.
import…

Osborne Saka
- 469
- 1
- 4
- 21