Code-Sharp / uHttpSharp

A very lightweight & simple embedded http server for c#
GNU Lesser General Public License v2.1
111 stars 43 forks source link

HTTP over UDP? #25

Open seppy87 opened 5 years ago

seppy87 commented 5 years ago

Hallo,

I am relatively new in the matter. I hope not to offend anyone. But is there a way to make a UdpListener here? I know HTTP is usually over TCP/IP.

My Intention: My work (I respect the LGPL and I will mention your DLL and your site in the About Section extra) communicates over HTTP and It is much easier to make UDP Hole punching than to convince people to open a Port for it.

shanielh commented 5 years ago

I guess you can try implement IHttpListener in your user code and use it instead of the TCPListener.. good luck, let me know if it works :)

AStopher commented 3 years ago

Sounds like you're trying to create a server that sits behind a domestic home network, correct? If so, UDP won't solve your issues- you'll need to create a relay server or (as you've already mentioned) have your users port forward.

minecraftchest1 commented 2 years ago

There is QUIC which is over UDP.