Questions tagged [udpclient]

UdpClient (System.Net.Sockets.UdpClient) is a .NET-Class allowing to send and receive UDP-Traffic.

575 questions
-1
votes
1 answer

Using smartphone to send GPRS data

i've created a UDP server in c# that listen to specific port for UDP data, the project relie on Dataloggers to send data via GPRS, but because we do not have these dataloggers yet, and for testing purposes, is there any way or idea to make my…
-1
votes
1 answer

How to stop recvfrom() from blocking while using in threads with UDP server in C linux?

I'm implementing server-client between 2 computers, the idea is to read inputs from connected slave to PC3 and to send it to PC4 and also the way back (inputs from connected slave P4 and send it to PC3). the side of server: client: static void…
-1
votes
1 answer

UDPClient loosing connection after receiving multiple messages

I'm trying to fetch some data, which is streamed via an UDP multicast Server. I've coded an C# WPF Application, where i can enter port and IP-address of server. The connection to the server is established sucessfully and i can receive multiple data…
kremsi_02
  • 1
  • 2
-1
votes
1 answer

Can not bind socket to address

I am trying to write some client code to send a UDP packet to another computer at a particular IP address. When the IP address was set to home it worked just fine. I could use wireshark to see the packets being sent. When I put the server's IP in I…
cHorse
  • 11
  • 1
  • 8
-1
votes
1 answer

C# UDP client logging .txt file using button click and data from another thread

any help much appreciated! I have a UDP listener which has button controls to start/stop the UDP, and write to .txt file, however the latter part does not work as I wish. The beginInvoke sends the 'data' to thread [button_start_writing_Click]…
Jon
  • 21
  • 1
  • 4
-1
votes
2 answers

To write chat programming using UDP and MQTT protocol in Android

I am new in Android programming and don't know how to work with UDP and MQTT protocol in android device I want to build an application for chatting android to android device within room connected to same Wi-Fi router. But I don't know what IP…
Chintak Patel
  • 748
  • 6
  • 24
-1
votes
1 answer

How to show and block incoming UDP packets

How to show and block ip UDP incoming in c# WinForms. Show ip and incoming packet in label like Anti DDOS Guardian
-1
votes
2 answers

C# Chat app only working on LAN

I made a chat app in C# using the UDP protocol. I don't want to use TCP. But it is only working within my own network/wifi. I made this for myself and my friend, or possibly anyone else who downloads it, and it isn't working. Do I have to…
Nanerz
  • 1
  • 1
-1
votes
1 answer

Proper use of IdUDPClient.ReceiveBuffer

Thank you for your help. I am converting an older version of Delphi to XE5 and I am getting stuck with the Indy compnent. Need to use IdUDPClient.ReceiveBuffer Here is my code: while not Terminated do begin try lenUDP:=…
MikeA
  • 19
  • 1
  • 2
-1
votes
1 answer

Can't convert 'tuple' object to str implicitly

I'm new to Python and while creating a client-server UDP ping server program in Python I encountered this severe error. It says: TpyeError: Can't convert 'tuple' object to str implicitly The error is present in the UDPClient.py file, which…
user2607744
  • 339
  • 5
  • 14
-1
votes
1 answer

UDP server with 2 UDP clients

In my code, clients only send data to the server. However, I would like what client1 says to be sent to the server and then the server to relay it to client2. I have tried everything I can think of but can't figure it out. Server #include…
-1
votes
1 answer

How do I convert a ByteArray into int via UDP Datagram

My client code: import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.nio.ByteBuffer; import java.util.Scanner; public class UDPClient { public static void main…
Franco
  • 875
  • 1
  • 6
  • 14
-1
votes
1 answer

UDP client connecting process correct, failure to transmit in Unix environment

I am trying to create my first UDP client server program in C language slightly modified from the man page of linux gai_strerror(3) - Linux man page. Although that I am using several error functions to check the correct process of the code when I…
Thanos
  • 1,618
  • 4
  • 28
  • 49
-1
votes
1 answer

Error in c socket programming?

int acceptSocket; struct sockaddr_in addr, client, dest; char buf[256]; long rc, sentbytes; int port = 18017; int CreateSocket() { if(rc!=0) { printf("socket failure code: %ld\n",rc); return 1; } …
user3252048
  • 77
  • 1
  • 12
-1
votes
1 answer

UDP to server does not work

At work, I have to route some data that are coming in using UDP. I've followed some tutorials such as this blog or this tutorial and cooked up two console applications, one to send UDP messages (client) and one to read them (listener). When I enter…
SimonAx
  • 1,176
  • 1
  • 8
  • 32
1 2 3
38
39