Solved

Windows Service

Posted on 2008-06-16
7
195 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
Comment Utility
when you tested it with your ip did you disable the loopback adapter?
0
 
LVL 41

Expert Comment

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

Author Comment

by:Henrici
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 41

Expert Comment

by:graye
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

17 Experts available now in Live!

Get 1:1 Help Now