How can I use CLI to find my public IP address in IPv4 vs IPv6?
LeRoy Diener <[email protected]> Mon, 13 May 2024 10:10:34 -0500
| Newsgroups | gmane.org.user-groups.linux.nmglug |
|---|---|
| Message-ID | <347de3b6708ac91e5d1def709a7ba9f36b19ee41.camel@choosetherightside.com> |
--===============0116321157800062127== Content-Type: multipart/alternative; boundary="=-0BJ2EbnWW9Wixikl2nWL" --=-0BJ2EbnWW9Wixikl2nWL Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Hi NMGLUG folks, I am familiar with using https://ipchicken.com/ to find my public IP address using the browser. I would like to verify my public IP address using CLI as well as the browser. I found this page https://www.tecmint.com/find-linux-server-public-ip-address/ with 4 ways. The web page (last updated July 2023) shows that the results are in IPv4, but my results are in IPv6. I tried all four ways. From the dig command, I get "bash: dig: command not found" From the host command, I get crap. When I remove the pipes I get stuff including an IPv6 address. From the wget and curl commands, Iget an IPv6 address. The IPv6 address from 5 variations of wget and curl are all the same. The IPv6 address from host is different. I like curl ifconfig.me because it is easy to remember. Here's the problem. I would like to verify my public IP address using CLI as well as the browser. From ipchicken in the broswer, I get IPv4. From the CLI, I get IPv6. How can I verify my public IP address? In gratitude, LeRoy -- There is something glorious birthing within all of us. I am the Love of God, no matter what.BSA LeRoy Diener 213-LEROYIZ 213-537-6949 https://leroydiener.com --=-0BJ2EbnWW9Wixikl2nWL Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable <html><head></head><body><div>Hi NMGLUG folks,</div><div><br></div><div>I a= m familiar with using <a href=3D"https://ipchicken.com/">https://ipchi= cken.com/</a> to find my public IP address using the browser.</div><di= v>I would like to verify my public IP address using CLI as well as the brow= ser.</div><div>I found this page <a href=3D"https://www.tecmint.com/fi= nd-linux-server-public-ip-address/">https://www.tecmint.com/find-linux-serv= er-public-ip-address/</a> with 4 ways.</div><div>The web page (last up= dated July 2023) shows that the results are in IPv4, but my results are in = IPv6.</div><div>I tried all four ways.</div><div>From the dig command, I ge= t "bash: dig: command not found"</div><div>From the host command, I get cra= p. When I remove the pipes I get stuff including an IPv6 address.</div><div= >From the wget and curl commands, Iget an IPv6 address.</div><div>The IPv6 = address from 5 variations of wget and curl are all the same. The IPv6 addre= ss from host is different.</div><div>I like curl ifconfig.me because it is = easy to remember.</div><div><br></div><div>Here's the problem.</div><div><s= pan style=3D"font-family: serif;">I would like to verify my public IP addre= ss using CLI as well as the browser.</span></div><div>From ipchicken in the= broswer, I get IPv4.</div><div>From the CLI, I get IPv6.</div><div>How can= I verify my public IP address?</div><div><br></div><div>In gratitude,</div= ><div>LeRoy</div><div><span><pre>-- <br></pre><span style=3D"caret-color: r= gb(46, 52, 54); color: rgb(46, 52, 54); font-family: Cantarell; font-size: = 18.66666603088379px; font-style: normal; font-variant-caps: normal; font-we= ight: normal; letter-spacing: normal; orphans: auto; text-align: start; tex= t-indent: 0px; text-transform: none; white-space: normal; widows: auto; wor= d-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-te= xt-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration= : none; display: inline !important; float: none;">There is something glorio= us birthing within all of us.</span><br style=3D"caret-color: rgb(46, 52, 5= 4); color: rgb(46, 52, 54); font-family: Cantarell; font-size: 18.666666030= 88379px; font-style: normal; font-variant-caps: normal; font-weight: normal= ; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0p= x; text-transform: none; white-space: normal; widows: auto; word-spacing: 0= px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-wi= dth: 0px; background-color: rgb(255, 255, 255); text-decoration: none;"><sp= an style=3D"caret-color: rgb(46, 52, 54); color: rgb(46, 52, 54); font-fami= ly: Cantarell; font-size: 18.66666603088379px; font-style: normal; font-var= iant-caps: normal; font-weight: normal; letter-spacing: normal; text-align:= start; text-indent: 0px; text-transform: none; white-space: normal; word-s= pacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-= stroke-width: 0px; text-decoration: none; float: none; display: inline !imp= ortant; background-color: rgb(255, 255, 255);">I am the Love of God, no mat= ter what.</span><div><span style=3D"background-color: rgb(255, 255, 255);">= BSA<br style=3D"caret-color: rgb(46, 52, 54); color: rgb(46, 52, 54); font-= family: Cantarell; font-size: 18.66666603088379px; font-style: normal; font= -variant-caps: normal; font-weight: normal; letter-spacing: normal; text-al= ign: start; text-indent: 0px; text-transform: none; white-space: normal; wo= rd-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-t= ext-stroke-width: 0px; text-decoration: none;"><span style=3D"caret-color: = rgb(46, 52, 54); color: rgb(46, 52, 54); font-family: Cantarell; font-size:= 18.66666603088379px; font-style: normal; font-variant-caps: normal; font-w= eight: normal; letter-spacing: normal; text-align: start; text-indent: 0px;= text-transform: none; white-space: normal; word-spacing: 0px; -webkit-tap-= highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; text-d= ecoration: none; float: none; display: inline !important;">LeRoy Diener</sp= an></span><br style=3D"caret-color: rgb(46, 52, 54); color: rgb(46, 52, 54)= ; font-family: Cantarell; font-size: 18.66666603088379px; font-style: norma= l; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: none; w= hite-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-= color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; background-color= : rgb(255, 255, 255); text-decoration: none;"><span style=3D"caret-color: r= gb(46, 52, 54); color: rgb(46, 52, 54); font-family: Cantarell; font-size: = 18.66666603088379px; font-style: normal; font-variant-caps: normal; font-we= ight: normal; letter-spacing: normal; orphans: auto; text-align: start; tex= t-indent: 0px; text-transform: none; white-space: normal; widows: auto; wor= d-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-te= xt-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration= : none; display: inline !important; float: none;">213-LEROYIZ</span><br sty= le=3D"caret-color: rgb(46, 52, 54); color: rgb(46, 52, 54); font-family: Ca= ntarell; font-size: 18.66666603088379px; font-style: normal; font-variant-c= aps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; te= xt-align: start; text-indent: 0px; text-transform: none; white-space: norma= l; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0,= 0, 0.4); -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 2= 55); text-decoration: none;"><span style=3D"caret-color: rgb(46, 52, 54); c= olor: rgb(46, 52, 54); font-family: Cantarell; font-size: 18.66666603088379= px; font-style: normal; font-variant-caps: normal; font-weight: normal; let= ter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; te= xt-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -= webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: = 0px; background-color: rgb(255, 255, 255); text-decoration: none; display: = inline !important; float: none;">213-537-6949</span><div style=3D"caret-col= or: rgb(46, 52, 54); color: rgb(46, 52, 54); font-family: Cantarell; font-s= ize: 18.66666603088379px; font-style: normal; font-variant-caps: normal; fo= nt-weight: normal; letter-spacing: normal; orphans: auto; text-align: start= ; text-indent: 0px; text-transform: none; white-space: normal; widows: auto= ; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webk= it-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decor= ation: none;"><a href=3D"https://leroydiener.com/" title=3D"Click to open h= ttps://leroydiener.com/">https://leroydiener.com</a><br></div></div></span>= </div></body></html> --=-0BJ2EbnWW9Wixikl2nWL-- --===============0116321157800062127== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ nmglug mailing list [email protected] http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org --===============0116321157800062127==--