Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In most client-server-applications, the port number of a server is a well-known number, while the client uses a currently available port number. DHCP is different. Here, both the client and the server use a well-known port: UDP port 67 for the DHCP server, and UDP port 68 for the DHCP client.

Why did they design it like that and have a fixed client port number?

share|improve this question

1 Answer 1

This is necessary as the client may not have an IP address when using DHCP (he uses DHCP to get an address).

The server and the client communicate via broadcasts so the server broadcasts the IP address of the client to UDP port 68. There is no other way for the server to reach the client. And this is the only way for the client to receive an answer to his request as he has no IP address.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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