
    ch                        % S SK Jr  S SKJr  S SKJr  \" \5      rS\S'   Sr	S\S'   Sr
S\S	'   S
rS\S'   SqS\S'   SqS\S'   SS jrSS jrSSS jjrSS jrg)    )annotations)Final)
get_loggerr   _LOGGERzhttp://checkip.amazonaws.com_AWS_CHECK_IPzhttps://checkip.amazonaws.com_AWS_CHECK_IP_HTTPSzhttps://docs.streamlit.io/	_HELP_DOCN
str | None_external_ip_internal_ipc                     [         b  [         $ [        [        SS9n U c  [        [        SS9n [	        U 5      (       a  U q [         $ [
        R                  S[        5        Sq [         $ )zGet the *external* IP address of the current machine.

Returns
-------
string
    The external IPv4 address of the current machine.

N   timeoutzEDid not auto detect external IP.
Please go to %s for debugging hints.)r   _make_blocking_http_getr   r   _looks_like_an_ip_adressr   warningr	   )responses    eC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\streamlit/net_util.pyget_external_ipr   "   sh     &}a@H*+>J))  	T	
     c                 (   [         b  [         $ SSKn U R                  U R                  U R                  5       n UR	                  S5        UR                  5       S   q SSS5        [         $ ! [         a    Sq  Nf = f! , (       d  f       [         $ = f)zGet the *local* IP address of the current machine.

From: https://stackoverflow.com/a/28950776

Returns
-------
string
    The local IPv4 address of the current machine.

Nr   )z8.8.8.8   z	127.0.0.1)r   socketAF_INET
SOCK_DGRAMconnectgetsockname	Exception)r   ss     r   get_internal_ipr!   A   s     	v~~v'8'8	9Q	'IIn%==?1-L	 
:   	'&L	' 
:	9 s(   A>$A,,A;8A>:A;;A>>
Bc                    SS K n UR                  XS9R                  n[        U[        5      (       a  UR                  5       nU$ ! [         a     g f = f)Nr   r   )requestsgettext
isinstancestrstripr   )urlr   r#   r%   s       r   r   r   ^   sO    ||C|166dC  ::<D s   ?A 
AAc                    U c  gSS K n UR                  UR                  U 5        g! [        [        4 a     Of = f UR                  UR
                  U 5        g! [        [        4 a     gf = f)NFr   T)r   	inet_ptonr   AttributeErrorOSErrorAF_INET6)addressr   s     r   r   r   j   sx    1G$ '2G$  	s   ' ::A A.-A.)returnr
   )r   )r)   r'   r   floatr0   r
   )r/   r
   r0   bool)
__future__r   typingr   streamlit.loggerr   __name__r   __annotations__r   r   r	   r   r   r   r!   r   r    r   r   <module>r9      sj    #  'H% % 6u 5< U < 0	5 /j j >:	r   