I am pretty new to the computer networking studies and was learning about the DHCP protocol. It is implemented based on UDP, as I've gathered, but is there a way for it to be implemented over TCP? What would lead to this implementation? Thank you for your time.

New contributor
Zap is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • 3
    Sounds like homework... Doesn't make sense otherwise. – Zac67 Feb 10 at 17:33
  • 1
    You cannot broadcast or multicast with TCP because it creates connections between two specific endpoints. – Ron Maupin Feb 10 at 18:30

If it doesn't need to be a very practical implementation, you could e.g. use link-local addresses to establish a TCP connection to a "DHCP over TCP" server and use that to lease a non-local address.

Discovery would still require broadcast or multicast, disqualifying TCP. Alternatively, the DHCP server could use a well-known, static link-local address that doesn't need discovery.


Given that DHCP relies on connection-less data transfer and broadcast and TCP is connection-oriented and does not support broadcasts one cannot implement the underlying design of DHCP with TCP.

Your Answer

Zap is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.