Interface Configuration

The server will try to obtain list of all configured interfaces of the host it is running on. If it fails the server tries to convert hostname to IP address and will use interface with the IP address only.

Function add_interfaces will add all configured interfaces to the array.

Try to convert all interface names to IP addresses, remove duplicates...