Coder Social home page Coder Social logo

sharp-dhcp-server-lib's Issues

Error when sending reply

I'm getting this error when doing this: dhcpRequest.SendDHCPReply(DHCPMsgType.DHCPOFFER, ip, replyOptions);

I'm binding to 0.0.0.0 and receiving requests just fine.

System.Net.Sockets.SocketException (0x80004005): Only one usage of each socket address (protocol/network address/port) is normally permitted
   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
   at System.Net.Sockets.UdpClient..ctor(Int32 port, AddressFamily family)
   at System.Net.Sockets.UdpClient..ctor(Int32 port)
   at DotNetProjects.DhcpServer.DHCPRequest.SendDHCPReply(DHCPMsgType msgType, IPAddress ip, DHCPReplyOptions replyData, Dictionary`2 otherForceOptions, IEnumerable`1 forceOptions) in C:\projects\sharp-dhcp-server-lib\SharpDHCPServerLib\DHCPRequest.cs:line 331
   at DotNetProjects.DhcpServer.DHCPRequest.SendDHCPReply(DHCPMsgType msgType, IPAddress ip, DHCPReplyOptions replyData) in C:\projects\sharp-dhcp-server-lib\SharpDHCPServerLib\DHCPRequest.cs:line 259

DHCPRequest.SendDHCPReply does not send from port 67

When sending a DHCP reply to a DHCPRequest message, the server should use the BOOTPS port (67) for sending. Some DHCP clients will otherwise direct additional responses to the randomly chosen port where no listener exists.

Missing/Unclear license

I would like to use this library on a project, but no clear license was published here on github. On nuget.org I found a MIT license. This ambiguous situation makes it a little difficult to decide whether to use the library or not. Would it possible to add a license file here on github?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.