naama
Member
- Joined
- Dec 17, 2019
- Messages
- 9
- Programming Experience
- Beginner
i've open a raw socket for icmp packet with Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Icmp);
then i bind it with IPAddress.Any
i've send request packet to my computer ip("192.168.1.29")
i know the packet was reacive due to wireshark put i can't get the packet with s.reacive using VS
the only way i can get the packet is if i'am binding the socket to "192.168.1.29" and then adding the option of
s.IOControl(IOControlCode.ReceiveAll, byTrue, null);
it's problematic since then my program is more or less acting as sniffer and i can't send back icmp packet using sendTo.
help whould be appreciate
then i bind it with IPAddress.Any
i've send request packet to my computer ip("192.168.1.29")
i know the packet was reacive due to wireshark put i can't get the packet with s.reacive using VS
the only way i can get the packet is if i'am binding the socket to "192.168.1.29" and then adding the option of
s.IOControl(IOControlCode.ReceiveAll, byTrue, null);
it's problematic since then my program is more or less acting as sniffer and i can't send back icmp packet using sendTo.
help whould be appreciate