Helper function added that retrieves a local IP address