Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
PsychedelicShayna authored Apr 15, 2020
1 parent 5fca998 commit 4ffae51
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ This program is a cheap patch to a bug that I repeatedly encounter involving Win
This program "fixes" this problem by looping through your adapters and looking for any IP addresses that match a regular expression of an IPv4 address in the APIPA range, and then deletes them. The frequency of these checks can be specified in milliseconds through the `--rate (-r)` commang line argument. It also requires elevated privilages in order to remove said addresses, so ensure admin rights are granted if you run this yourself.

_Footnote: I've noticed that Windows seems to give up self-assigning IP addresses after enough deletions, so the program may not need to run constantly, but this behavior is inconsistent so I recommend keeping it open if you're having APIPA troubles._

## Relevant Links
- [Link-Local-Address Wikipedia](https://en.wikipedia.org/wiki/Link-local_address)
- [IP_ADAPTER_INFO Struct MSDN](https://docs.microsoft.com/en-us/windows/win32/api/iptypes/ns-iptypes-ip_adapter_info)
- [IP_ADDR_STRING Struct MSDN](https://docs.microsoft.com/en-us/windows/win32/api/iptypes/ns-iptypes-ip_addr_string)
- [GetAdapterInfo() MSDN](https://docs.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-getadaptersinfo)
- [DeleteIPAddress() MSDN](https://docs.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-deleteipaddress)

0 comments on commit 4ffae51

Please sign in to comment.