parameters: ()
return_statement: return external_socket.getsockname()[0]
docstring: Finds out the machine's external IP by connecting to google.com.
docstring_summary: Finds out the machine's external IP by connecting to google.com.
docstring_tokens: Finds out the machine s external IP by connecting to google . com .
function: def _get_external_ip():
    """Finds out the machine's external IP by connecting to google.com."""
    external_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    external_socket.connect(('google.com', 80))
    return external_socket.getsockname()[0]
function_tokens: def _get_external_ip ( ) : external_socket = socket . socket ( socket . AF_INET , socket . SOCK_DGRAM ) external_socket . connect ( ( 'google.com' , 80 ) ) return external_socket . getsockname ( ) [ 0 ]