Tech Support Forum banner
Status
Not open for further replies.
1 - 7 of 7 Posts

· Registered
Joined
·
8 Posts
Discussion Starter · #1 ·
Hello All,
First post in this forum.

I am having a network problem. The core problem is that I cannot receive broadcast packets on my desktop.

Specifics: Using Microsoft visual C# express I obtained some demo code and built a UDP talker and a UDP listener. I start up both on my desk top running XP Professional. I start both on my laptop running XP Home. (Four processes running at the same time, a talker and listener on each computer.) Messages sent from the desktop are received by the laptop, but not the desktop. Messages sent by the laptop are received by the laptop, but not the desktop. Both are connected to a Belkin wireless router though a hard connection, then to a cable modem. Both have internet access. The Belkin router connects to a broadband cable modem.

I try to investigate with Start | Windows Firewall and I get the message “Windows Firewall settings cannot be displayed because the associated service is not running. Do you want to start the windows Firewall/Internet Connection Sharing (ICS) service?

I click the Yes button and get the response: Windows cannot start the Windows Firewall/Internet connection sharing (ICS) service. Unfortunately, I just cannot find the buttons that say “Why not?” and “Do it anyway #$$%@!e”

So I go to Control Panel | Network Connections and find “Local Area Connection 2.” Although it contains a “2” in the name, it is the only entry in Network Connections. There I double click or right click on this “Local Area Connection 2”, and Control Panel locks up. It won’t respond to anything, it won't resize, it won’t move, it won’t do anything. I have to use task manager to get rid of it. Oops, I just found that it I leave it alone for a few minutes while I write this, the window kind of blinks then I can use the back button to get back to Control Panel. But if I click Local Area Connection 2, it locks up again.

Any suggestions as to what I can do? The primary objective is enabling the receipt of broadcast messages on my desktop.

Thanks for your time.
 

· Registered
Joined
·
8 Posts
Discussion Starter · #2 ·
BUMP back up.

I posted this a while back and never received a reply. Visual C# Express has been updated to 2008. I created a send and and receive program. When the receive runs on the laptop and the send on the desktop, everything is OK. When the receive program starts on the desktop, it solicits the standard error message that it has encountered an error and must close. (The one that asks if I want to send a note to Microsoft) It will not complete its startup process.

This is a console (DOS command window) project. Both computers are running XP, the laptop is running the home version and the desktop is running XP Pro. I have gone through all the control panel security settings and found nothing about enabling UDP receive packets. My laptop is about ready to die so I would like to be able to use my desktop for receiving UDP. (I have an embedded computer project that sends out UDP data and need to receive it)
 

· Global Moderator
Electronic Design
Joined
·
52,687 Posts
I'd expect that the error message when the program crashes indicates a programming issue.

What exactly is the application you created supposed to do?
 

· Registered
Joined
·
8 Posts
Discussion Starter · #4 ·
Hello johnwill,

Well, the program does do exactly what it is supposed to do.

Condition 1: I start the listener on my laptop and the sender on my desktop. When I type in a line of text on the sender and press return, it send out the text via a UDP broadcast and the listener picks up the text and displays that text on the screen. It does work as expected.

Condition 2: When I attempt to run the listener on the desktop, it crashes. When I ran the same source code under Visual C# 2005 (as opposed to 2008) on my desk top, it did not crash, but I could receive any data.

I have a small computer that monitors some sensors and broadcasts data values about 10 Hz via UDP messages. A third C# program collects the data on my laptop, but the same code will not collect any data on my desk top.

As stated, I suspect there is a configuration on my desk top that is blocking broadcast messages, but I an unable to find it. It is curious that I don't have any apparantly releated problems with Microsoft Internet Explorer.

I can post the code here, or I can put it in a web page and supply that address.
 

· Global Moderator
Electronic Design
Joined
·
52,687 Posts
I'm not sure I'm good enough in C#, I use C/C++, never got around to playing with C#. What is the crash, that doesn't sound like the program is doing what it's supposed to do?
 

· Registered
Joined
·
8 Posts
Discussion Starter · #6 ·
Well, without a recompile, the symptoms have changed. Today it is not crashing. I started a copy of the UDP listener program and the UDP sender program on both the laptop and the desktop. When I send from either computer, the laptop receives the message but the desktop does not. Both programs were compiled from the desktop and copied to the laptop. They were not compiled on the laptop.

To review, the send program sends out a line of text to IP address 192.168.2.255 port 11000. The listener just monitors that address and port and when it finds data, puts it in the console window. There is no error checking, this is just an exercise in UDP programming.

I am reasonably sure there is a configuration problem in the desktop but I don't know what it is or where to find it.
 
1 - 7 of 7 Posts
Status
Not open for further replies.
Top