Problem in Socket programming application in XPE

M

Michells

Hello all,

I have developed a socket programming application in VC2005. This will
be tested on XP embedded OS. The Host application will be on my PC(XP
professional) and the target applicaiton will be on Embedded OS.

procedure is as follows:

both Host and target PC are connected using Ethernet Crossover cable
Host application is used in HOST system(XP Professional)
Target system uses target applicaiton(XP Embedded)

In Host appliaction IP address of the HOST system is displayed and in
Target application IP address of the Target system is disaplyed.

the Problem:
When I broadcast the IP address, the target system's IP address has
to be disaplyed in Host applicaition. This is not happening. It
displays the IP address of the HOST system instead. So can any let me
know if any of the component is required to perform this operation
successfully.

PS: If I connect both XP professional system, this application is
working perfectly. I mean it is displaying the IP address of Target
system in the HOST application.

Regards
Michells
 
K

KM

Michells,

I am going to put my comments here since nobody else responded yet.

Without the knowledge about what you have already included in the embedded image and, more importantly, not knowing the details of
your application implementation it is going to be hard to help you. E.g., did you include Basic TCP/IP Networking and resolved its
dependencies or TCP/IP Networking or TCP/IP Networking with MS Client?

Also, how do you query for the target system's IP from the host app? Can you show us that piece of code so that we can guess where
the problem could be?
How do you broadcast the IP address (SO_BROADCAST, INADDR_BROADCAST?) and how do you capture it in the host app?
Is the firewall set to Off on the embedded device?

The assumption is that the network drivers are working fine on your XPe system.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top