Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Write a Windows DHCP server in Python?

Posted on 2006-10-20
1
1,090 Views
Last Modified: 2012-06-27

Would it be possible to write a DHCP server for Windows using just Python? Or would this be better left to a language like C\C++?

Also, any reasons why this might end up being particularly difficult to do? Any advice or starting points?
0
Comment
Question by:xy8088
1 Comment
 
LVL 7

Accepted Solution

by:
Chatable earned 250 total points
ID: 17777436
First of all you can write anything in Python. The major advantage of writing Python software is that it may very well be OS independent, i.e. your server may run Linux, Windows, MacOS and other operating systems with little or no change at all.
About your idea, there actually is a Python DHCP server listed on sourceforge but it hasn't released any version yet.
To write a DHCP daemon in Python or any other language you need to
1) Read and understand the DHCP RFC - http://www.ietf.org/rfc/rfc2131.txt
2) Implement the protocol using your favorite language.
Whether it is a good idea to use Python for that purpose? I assess that a network with a few to a few hundreds of clients will be able to use a Python DCHP daemon with no problems.
For huge enterprise networks you may want to use C/C++.
Please note that Windows Server 2000/2003 already has a built-in DHCP daemon.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction On September 29, 2012, the Python 3.3.0 was released; nothing extremely unexpected,  yet another, better version of Python. But, if you work in Microsoft Windows, you should notice that the Python Launcher for Windows was introduced wi…
Strings in Python are the set of characters that, once defined, cannot be changed by any other method like replace. Even if we use the replace method it still does not modify the original string that we use, but just copies the string and then modif…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question