Created
June 26, 2024 11:18
-
-
Save fredeil/3a2427419c9fdfb2458c8852733a142f to your computer and use it in GitHub Desktop.
UDP broadcast connection suite server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var port = 4539; | |
var client = new System.Net.Sockets.UdpClient(); | |
var ip = new System.Net.IPEndPoint(System.Net.IPAddress.Parse("10.0.104.255"), port); | |
var bytes = System.Text.Encoding.ASCII.GetBytes("HelpINeedDatabaseConfigPleaseš«”š«”"); | |
_ = client.Send(bytes, bytes.Length, ip); | |
var result = await client.ReceiveAsync(); | |
Console.WriteLine(result.RemoteEndPoint.ToString()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment