udp

Closing/unbinding a UDP socket in c#

Is there a way I can force a UDP socket (which is used by another process) to close or unbind, in c# programmatically? ...

RTSP Stack implementation

Hi, I am working on making RTSP url to work on Android. I have used MediaPlayer and VideoView to play the RTSP url but both of them fail to play in G1 Device and emulator. Error is PVMFFailureiin PLAYER_INIT. So I thought of implementing a RTSP client from scratch. I have developed a small application, it exchanges all the messages (DE...

method to find my UDP socket's "real" port?

Is there any free service to which I could send a UDP packet and it would respond telling me what is my "real" UDP port? (my application is behind a NAT) This kind of service could allow me to make a p2p coordination server with normal php hosting. The p2p clients would know their UDP ports from this service They will then contact my ...

'Who's online?' Ruby Network Program

I have several embedded linux systems that I want to write a 'Who's Online?' network service in Ruby. Below is related part of my code: mySocket = UDPSocket.new mySocket.bind("<broadcast>", 50050) loop do begin text, sender = mySocket.recvfrom(1024) puts text if text =~ /KNOCK KNOCK/ then begin sock = UD...

Web Services on UDP

I need to convert an existing Web Service (done on .Net 2.0) which runs on SOAP/HTTP to run on UDP. I found a ton of resources on web on explaining why and how I should go about doing it. But all of them too general. Can someone point me to a example/resource of some sort specific to .Net? ...

How to listen for broadcast packets on any port?

Using .NET, how can I listen to udp broadcast packets sent to .255 on any port without the need of binding to a specific port? ...

Unable to send images on UDP larger than 10K

Hi All, I am trying to develop a client/server application in which client will send images to the server. Case 1: Server is running on one machine that is behind a router and client is running on another machine that is behind some different router. As this communication will be on WAN (public IPs), a port is forwarded on server si...

Network Programmer Blogs (especially for games)

What are some good network programmer blogs? I'm especially interested in people who write about multiplayer games (MMORPG/RTS/FPS/etc), but any well written blog on the subject would be great. Here's a good blog I found on another stackoverflow post: Glenn Fiedler's Networking for Game Programmers Gamasutra Blogs occasionally has arti...

Python sendto() not working on 3.1 (works on 2.6)

Hi! For some reason, the following seems to work perfectly on my ubuntu machine running python 2.6 and returns an error on my windows xp box running python 3.1 from socket import socket, AF_INET, SOCK_DGRAM data = 'UDP Test Data' port = 12345 hostname = '192.168.0.1' udp = socket(AF_INET,SOCK_DGRAM) udp.sendto(data, (hostname, port)) ...

Does a UDP service have to respond from the connected IP address?

Pyzor uses UDP/IP as the communication protocol. We recently switched the public server to a new machine, and started getting reports of many timeouts. I discovered that I could fix the problem if I changed the IP that was queried from eth0:1 to eth0. I can reproduce this problem with a simple example: This is the server code: #! /u...

How do I find the port number assigned to a UDP client (in .net/C#)?

If I create a socket using var socket = new UdpClient(0,AddressFamily.InterNetwork); How do I then find the port of the socket? I'm probably being daft, but I'm not having luck in MSDN/Google (probably because it is 4:42 on a Friday and the sun is shining). Background: What I want to do is find an open port, and then report to an...

Missing UDP fragments when monitoring traffic with tcpdump

I'm on a local LAN with only 8 connected computers using a netgear 24 port gigabit switch, network load is really low and send/receive buffers on all involved nodes(running slackware 11) have been set to 16mb. I'm also running tcpdump on each node to monitor the traffic. A sending node sends a 10044byte large UDP packet which more often...

Why am I not receiving UDP Packets sent to my own IP?

I've written this ruby program to send a UDP Packet to port 16800: require 'socket' sock = UDPSocket.new sock.bind("", 47123) sock.send("Hello!", 0, "192.168.0.100", 16800) sock.close where 192.168.0.100 is my own ip address. However, the packet doesn't show in Wireshark and my UDP server listening on port 16800 on the same PC (runni...

How to listen UDP and make use of PHP

Hello, I have to build up a system which listens for requests from a GPS device which is only capable of sending UDP requests. Then I am going to analyze requests hopefully by PHP if it is possible. I do not know where to start. What do I need? Can I make use of PHP? Would it be reliable to use PHP? Can I just adjust Apache for listen...

C# UDP Multicast disconnects after a few seconds.

I have some networking code which connects to a multicast address but disconnects after a few seconds. Can anyone figure out what's wrong with this code? String Target_IP = "224.1.2.3"; int Target_Port = 31337; IPEndPoint LocalEP = new IPEndPoint(IPAddress.Any, Target_Port); IPEndPoint RemoteEP = new IPEndPoint(IPAddress.Parse(Target_...

efficient and flexible binary data parsing

I have an external device that spits out UDP packets of binary data and software running on an embedded system that needs to read this data stream, parse it and do somethign useful. The binary data gets logged to a file as well. I would like to write a parser that can easily take the input directly from either the UDP stream, or a file...

How to process UDP data in Appengine

I have a service provider who is transmitting data thro' UDP. I want to establish a connection to them, receive & process data (will be with in the 30 sec limit/request) Is it possible to get & process UDP data in appengine. I am looking for some simple example. ...

Qt4 DNS Server using QUdpSocket

I am writing a DNS server for an application I'm working on and I'm running into some difficulties. I want to bind to port 53 on localhost and listen for DNS lookup requests, then send back the response. Unfortunately, when I call QUdpSocket::bind() the resulting socket is not writeable. Is there a flag I need to pass to make it so I ...

UDP request from a Windows Gadget

How can I make a UDP request from a Windows Gadget? This gadget is very, very similar to what I want to make, but I'd like to make a gadget that gets game information from TF2 servers by making a UDP request. I took a look at the code for the afrementioned gadget and I really couldn't make heads or tails of it - I was trained in Java, an...

GetExtendedUdpTable and Remote Ip Address

I've got some c# code that is mapping processes to ip addresses, I'm basically trying to write some software that will look at a process and give me the ip address so that I can write a monitor that will allow friends to find be in games. When running my application though it detects that a game process has a UDP connection but I can't ...