Solved

Problem Trying to unicast packets to available networks.

Posted on 2009-07-08
1
522 Views
Last Modified: 2013-11-29
Trying to unicast packets to available networks. There are totally 3 networks. Managed to get packets in only one network.But i am not able to receive the packets in different networks.

using this code..
foreach (var i in System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces())

            {

                foreach (var ua in i.GetIPProperties().UnicastAddresses)

                {

                    System.Windows.Forms.MessageBox.Show(ua.Address.ToString());

                    IPAddress Tip = IPAddress.Parse(ua.Address.ToString());

                    IPEndPoint targetEndPoint = new IPEndPoint(Tip, iTargetPort);

                    MyUdpClient sendUdpClient = new MyUdpClient();

                    int numBytesSent = sendUdpClient.Send(CombineHeaderBody, CombineHeaderBody.Length, targetEndPoint);

                }

            }

Open in new window

0
Comment
Question by:srk1982
1 Comment
 
LVL 12

Accepted Solution

by:
topdog770 earned 500 total points
ID: 24808776
srk:
Take a look at this sniffer code: http://www.codeproject.com/KB/IP/CSNetworkSniffer.aspx
I have tried this in a long time, but rumor ( ie something I haven't personally tested ) has it that security settings have changed, that you may not see the raw packets under some conditions.
I believe the link above also refers to this security change and has some solution/work around as well.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

The article explains the protocols and technology which is involved when two computers on different TCP/IP networks communicate with each other. In the diagram, a router is used to segregate two networks. The networks are 192.168.1.0/24 and 192…
This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now