CyberShadow / dhcptest

Cross-platform DHCP test client
https://blog.cy.md/2013/01/10/dhcp-test-client
366 stars 57 forks source link

Allow selecting the port to connect to #27

Closed RedstoneBlocks closed 1 year ago

RedstoneBlocks commented 2 years ago

I would like to use this tool to test a DHCP implementation, but I am unable to bind to port 67 while testing. A solution would be adding a command line switch to select the server port to connect to.

sjackson0109 commented 2 years ago

This tool is a ‘listener’

Just run it as an admin, and make sure it runs on a machine in the client’s network (assuming the server is in another subnet).

If they are in the same network just run it.

Once it’s listening - get ANOTHER client to issue a dhcp lease. And watch what happens.

On 24 Jul 2022, at 17:16, RedstoneBlocks @.***> wrote:

 I would like to use this tool to test a DHCP implementation, but I am unable to bind to port 67 while testing. A solution would be adding a command line switch to select the server port to connect to.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

CyberShadow commented 1 year ago

Added --bind-port and --target-port in 967f264bdeb100c457f03864eea6d6a3e04246ee.