Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

broadcast with unbound adapter

Status
Not open for further replies.

dunecan

Programmer
Feb 15, 2007
2
FR
Hi,

I am trying to broadcast a DHCP Message with unbound adapter (after ipconfig /release) on windows XP SP2.
When I try to send the message, I get the error 10065 (WSAEHOSTUNREACH).
I am trying to send the message using Microsoft Visual C++. I have tried using a RAW socket.
The Message is succesfully sent when an IP address is bound, but I receive 10065 when it is unbound (0.0.0.0).
I have also tried using a Java program, but I get the equivalent error: NoRouteToHostException.

I know it is possible to send such a message, since the Microsoft DHCP Client does it at "ipconfig /renew" after an "ipconfig /release".

Could anyone help me?
 
Just guess. DHCP initial broadcasts should be sent over UDP protocoll, rather than over TCP. Is there possibility to choose between UDP and TCP?
 
Yes it is possible to choose UDP. I am using UDP.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top