Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

Windows Service

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
Henrici
Asked:
Henrici
1 Solution
 
p_davisCommented:
when you tested it with your ip did you disable the loopback adapter?
0
 
grayeCommented:
Did you get an execption?   If so, what did it say?
0
 
HenriciAuthor Commented:
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
grayeCommented:
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
 
p_davisCommented:
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
 
p_davisCommented:
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
 
scgstuffCommented:
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now