How to detect computer IP addresses

Using Winsock unit, we can determine computer IP address. If you have more network adapters, all IP addresses will be detected.
First of all, add Winsock unit to uses list. The rest is easy. Following function will determine all IP addresses of your computer and return this list as an StringList type.