added method for retrieving the local ipv4 address