{"id":2304,"date":"2023-08-09T08:02:00","date_gmt":"2023-08-09T08:02:00","guid":{"rendered":"https:\/\/myvlcsys.com\/?p=2304"},"modified":"2023-08-09T17:36:56","modified_gmt":"2023-08-09T17:36:56","slug":"linux-ip-publica-desde-terminal-de-comandos","status":"publish","type":"post","link":"https:\/\/myvlcsys.com\/?p=2304","title":{"rendered":"LINUX: Ip p\u00fablica desde terminal de comandos"},"content":{"rendered":"\n<p>En la actualidad y cada vez m\u00e1s es frecuente usar m\u00e1quinas virtuales en la nube.  Y es necesario para explotar los servicios que montamos sobre ella, averiguar la ip publica que dispone nuestra m\u00e1quina servidor. <\/p>\n\n\n\n<p>Para ello disponemos del comando  <mark style=\"background-color:#000000\" class=\"has-inline-color has-white-color\">curl ifconfig.me<\/mark>, para lo cual seguiremos los siguientes pasos.<\/p>\n\n\n\n<p>Para la primera opci\u00f3n que proponemos vamos a necesitar&nbsp;<strong>curl<\/strong>, si no lo tienes instalado, ejecuta el siguiente comando para instalarlo:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><mark style=\"background-color:#000000\" class=\"has-inline-color has-white-color\">sudo apt-get install curl\n<\/mark><\/pre>\n\n\n\n<p>Tras la instalaci\u00f3n del paquete, podremos ejecutar en la terminal el siguiente comando:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><mark style=\"background-color:#000000\" class=\"has-inline-color has-white-color\">curl ifconfig.me<\/mark><\/pre>\n\n\n\n<p>Este comando nos devolver\u00e1 la siguiente informaci\u00f3n en el promot. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/myvlcsys.com\/wp-content\/uploads\/2023\/07\/image-25.png\" alt=\"\" class=\"wp-image-2307\" width=\"651\" height=\"98\" srcset=\"https:\/\/myvlcsys.com\/wp-content\/uploads\/2023\/07\/image-25.png 576w, https:\/\/myvlcsys.com\/wp-content\/uploads\/2023\/07\/image-25-300x45.png 300w\" sizes=\"(max-width: 651px) 100vw, 651px\" \/><figcaption>curl ifconfig.me<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Otra forma de obtener es con el comando:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><mark style=\"background-color:#000000\" class=\"has-inline-color has-white-color\">wget -qO- ifconfig.me\/ip<\/mark><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/myvlcsys.com\/wp-content\/uploads\/2023\/07\/image-28.png\" alt=\"\" class=\"wp-image-2317\" width=\"710\" height=\"56\" srcset=\"https:\/\/myvlcsys.com\/wp-content\/uploads\/2023\/07\/image-28.png 582w, https:\/\/myvlcsys.com\/wp-content\/uploads\/2023\/07\/image-28-300x24.png 300w\" sizes=\"(max-width: 710px) 100vw, 710px\" \/><\/figure>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>En la actualidad y cada vez m\u00e1s es frecuente usar m\u00e1quinas virtuales en la nube. Y es necesario para explotar los servicios que montamos sobre ella, averiguar la ip publica&hellip; <\/p>\n","protected":false},"author":4,"featured_media":2066,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[30,10,45,18],"tags":[26,25,47,27,24],"class_list":["post-2304","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-comandos","category-linux","category-pildoras","category-redes","tag-debian","tag-linux","tag-myvlcsys","tag-sistemas","tag-terminal"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/posts\/2304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2304"}],"version-history":[{"count":7,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/posts\/2304\/revisions"}],"predecessor-version":[{"id":2318,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/posts\/2304\/revisions\/2318"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/media\/2066"}],"wp:attachment":[{"href":"https:\/\/myvlcsys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}