Here is my code, it throws no exceptions or anything! I put 127.0.0.1 and port = 8000... Wireshark is open but doesn't show any UDP communication from that ip or port
Code:
void SendUDPpacket(string ip)
{
            byte[] data = new byte[1024];
            string sData = textBox2.Text;
            data = Encoding.ASCII.GetBytes(sData);
            var commPort = 8000;
            
            IPEndPoint ep = new IPEndPoint(IPAddress.Parse(ip), commPort);
            
            Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);

            socket.SendTo(data, ep);
}