Windows Service

Posted on 2008-06-16
Last Modified: 2013-12-17
I have a simple Client / Server example written in VS 2005 C#.  I am testing both on the _same_ XP SP2 machine.  I am trying to make the Client send the Server a UDP message.  In the CLient, if I use my loopback address like below, all works as expected.  If I instead use my actualy IP address in the Client, then it does not work.  But I need the UDP packet to actually go across the wire.  Any ideas?

Works : IPAddress broadcast = IPAddress.Parse("");
Does not Work:  IPAddress broadcast = IPAddress.Parse(_myIPAdrress_);
Question by:Henrici
LVL 22

Expert Comment

ID: 21796108
when you tested it with your ip did you disable the loopback adapter?
LVL 41

Expert Comment

ID: 21797325
Did you get an execption?   If so, what did it say?

Author Comment

ID: 21797554
I did not disable the loopback adapter and I am not sure why that would matter.  No, I did not get an exception.  I suspect this is a Firewall thing but not sure how to proceed.
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

LVL 41

Expert Comment

ID: 21797988
So, just disable the firewall completely, to see if that fixes it.   If so,  you can go back and do a more "surgical approach" to allow your application to pass.
LVL 22

Expert Comment

ID: 21799025
i know that sometimes -- depending on  the drivers that i use for my adapters, they can get 'confused' like i have to disable my wireless to get my net nic or wireless nic to work or my wireless to get my net nic or loopback to work. why not just try it and see?
LVL 22

Accepted Solution

p_davis earned 125 total points
ID: 21799031
and it is quite possible that it is antivirus/firewall related. but strip your scenario down to the barest esentials when working with ip's that aren't, working.

Expert Comment

ID: 21818671
Out of curiosity, was it the firewall like graye suggested several posts back, or was it an antivirus issue like p_davis suggested.


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 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

19 Experts available now in Live!

Get 1:1 Help Now