Click here to Skip to main content
15,894,740 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have a server written in C++ that communicates using UDP, I need a C#/asp website to send data to that server. Does anyone have an idea on how this could be done?

What I have tried:

Tried posting a message to the IP hoping that I could listen on port 80 and parse whatever data came in but that didn't work.
Posted
Updated 9-Feb-18 16:55pm
Comments
ZurdoDev 9-Feb-18 15:56pm    
Just google how to do udp in C#. Pretty simple.

1 solution

A simple google search of communicating in C# using UDP would have resolved your issue.

UdpClient Class (System.Net.Sockets)[^]

c# - Simple UDP example to send and receive data from same socket - Stack Overflow[^]

Google[^]

Unless you have some code you've actually tried and gotten stuck somewhere, i suggest you start with the above links, do some work on your end (not expect us to do the work for you) and see if you can massage these examples to meet your needs.

Should you actually attempt to solve your issue on your own and get stuck somewhere, feel free to come back with a clear explanation of your issue and any relevant code samples and I am sure you will get more meaningful help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900