Solved

Windows Service

Posted on 2008-06-16
7
199 Views
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("127.0.0.1");
Does not Work:  IPAddress broadcast = IPAddress.Parse(_myIPAdrress_);
0
Comment
Question by:Henrici
7 Comments
 
LVL 22

Expert Comment

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

Expert Comment

by:graye
ID: 21797325
Did you get an execption?   If so, what did it say?
0
 
LVL 2

Author Comment

by:Henrici
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.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 41

Expert Comment

by:graye
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.
0
 
LVL 22

Expert Comment

by:p_davis
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?
0
 
LVL 22

Accepted Solution

by:
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.
0
 
LVL 5

Expert Comment

by:scgstuff
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.

Shawn
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 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