UDP Web listener

UDP Web listener

Released 5 years ago , Last update 5 years ago

Through the Web listener you can obtain and to send UDP data packets from one or more devices simultaneous

Web Listener Library Through the Web listener you can obtain and to send UDP data packets from one or more devices simultaneously. The Web listener can run in the background, allowing your web application can operate without problems while receiving data from a GPS device.

  • Solve the problem to enable a Web Listener in asp.net technology to receive and send packets from the Web and in the background.

  • Was tested on .Net framework 3.5 and 4.0, using VS2008 and VS2010.

  • For testing were used 2 GPS LANTRIX T1800. The devices transmit data every 3 minutes


14 day 14-day money-back guarantee


Hosted License

  • Perpetual license

  • 1 site, unlimited servers

  • No distribution (hosted use only)

  • Commercial use

System requirements

System requirements

  • Net Framework 3.5 or higher
  • Visual Studio 2008 or higher

Supported operating systems:

  • Windows Server 2003
  • Windows Server 2008
  • Windows Vista
  • Windows XP
  • Windows 7

Additional information

Processor: 400 MHz Pentium processor or equivalent (Minimum); 1GHz Pentium processor or equivalent (Recommended) RAM:512 MB (Minimum); 1024 MB (Recommended) Hard Disk: Up to 500 MB of available space may be required


How to start?

  1. Create a new Solution
  2. Add Existing Project and select WebListener
  3. Add new Project and Select Create ASP.Net Web Application
  4. In Web Application Project add references and select Project Tab later select WebListener
  5. Done! now you can use de web listener...

How to implement the WebListener ?

On the Web aplication create a global.asax file and use the following code.

using WebListener;

private const int _portIn = 1200;  // receiveing port of new client
private const int _portOut = 1201;  // communication port
DeviceListenerManager listener;

protected void Application_Start(object sender, EventArgs e)
    listener = new DeviceListenerManager(_portIn, _portOut);
    listener.OnMessageReceived += new System.EventHandler(listener_OnMessageReceived);
    listener.OnACKPosted += new System.EventHandler(listener_OnACKPosted);
    Console.WriteLine("listener is running");

#region EventHandler
private void listener_OnMessageReceived(object sender, System.EventArgs e)
    SocketAsyncEventArgs socketAsyncEventArgs = null;
    string message = string.Empty;

    socketAsyncEventArgs = (SocketAsyncEventArgs)e;
    if (socketAsyncEventArgs.BytesTransferred  0)
        message = DeviceListenerManager.DecodeMessage(socketAsyncEventArgs.Buffer, socketAsyncEventArgs.BytesTransferred);
        if (!string.IsNullOrEmpty(message)) 
            Console.WriteLine("Message Received: {0}", message);


private void listener_OnACKPosted(object sender, System.EventArgs e)
    if (e != null && ((e as SocketAsyncEventArgs) != null))
        string m_ack = "Data has been received OK"; // Your ACK message
        byte[] b_toBeSend = DeviceListenerManager.EncodeMessage(m_ack);

        SendPacketsElement[] a_buffer = { (new SendPacketsElement(b_toBeSend)) };
        (e as SocketAsyncEventArgs).SendPacketsElements = a_buffer;

        Console.WriteLine("ACK Posted");


protected void Application_End(object sender, EventArgs e)

Example Code

The component include a full example's code.

udp web listener

2 licenses, starting from From » $19.99 View Licenses

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.

Or enter your name and Email
  • BB Bill Van Brunt 3 weeks ago
    I have an Advanced Media Technologies Ucrypt Video Streaming device for Video over IP. It sends out video over IP udp://@ What I need to know is there a way using your tool to create a web application to stream the data/video
  • RM Raymundo Delfin Medel 4 years ago
    Hi, We need this code to receive thousands GPS vehicle tracking devices, and receive data every 20 or 30 seconds to save the data in our database SQL Server 2008, Your application would solve our problem?, tks!
    • VK Vidal Kitoko 3 years ago
      I also have same doubt. Could someone get back to me pls?