P
Piotrekk
Hi
I have written piece of code to send message to my router.
static void Main(string[] args)
{
Socket mySock = new Socket(AddressFamily.InterNetwork,
SocketType.Raw, ProtocolType.Icmp);
IPEndPoint ep = new
IPEndPoint(IPAddress.Parse("192.168.1.1"), 7);
byte[] asd = new byte[2];
asd[0] = 33;
asd[1] = 44;
mySock.SendTo(asd, ep);
mySock.Close();
}
Problem is that my port sniffer does not detect any traffic when i
compile and run the code.
Do you know why?
PK
I have written piece of code to send message to my router.
static void Main(string[] args)
{
Socket mySock = new Socket(AddressFamily.InterNetwork,
SocketType.Raw, ProtocolType.Icmp);
IPEndPoint ep = new
IPEndPoint(IPAddress.Parse("192.168.1.1"), 7);
byte[] asd = new byte[2];
asd[0] = 33;
asd[1] = 44;
mySock.SendTo(asd, ep);
mySock.Close();
}
Problem is that my port sniffer does not detect any traffic when i
compile and run the code.
Do you know why?
PK