I need to assign IP addresses to computers in a LAN through programming (preferably java).
The Client will have a form with few buttons each of which have default IP address. when a user clicks on any one of the button, the server(on windows) needs to assign a new IP address from a range of IP addresses for each button.
This is only for a demo purpose for a college project.
I would greatly appreciate for ant posts, blog.
Thanks in advance
Here are two threads related to your question:
Change Computer IP address using JAVA how to change local machine/ethernet ip address
However, if you want to assign IP address for other computer in a LAN, then you probably need to read about DHCP. You will need to build the communication with a particular host first without knowing their address.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.