Fix about retrieving local network address

Fix about retrieving local network address.
(add to check broadcast address)