Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Problem Trying to unicast packets to available networks.

Posted on 2009-07-08
1
Medium Priority
?
544 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 12

Accepted Solution

by:
topdog770 earned 1500 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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSL is a very common protocol used these days when browsing the web.  The purpose is to provide security to communication, but how does it do it?  There are several pieces at work that have to be setup before SSL will even work and it requires both …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

636 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