<html><head></head><body><div>Thanks, Akkana.</div><div><br></div><div>It works for me using the -4 flag. I did not find that before.</div><div>Using debian, I typed in sudo apt install dig, and I got "Unable to locate package dig." That's not a big deal.</div><div>The "crap" that I got from the host command with pipes was the word "Address." I guess that parsing didn't work correctly because the command with pipes assumed IPv4, but the output had IPv6. When I added the -4 flag, it came out perfect.</div><div><br></div><div>Here's another thing interesting to note.</div><div>When I ssh -D 8080 into a server:</div><div>1) I can use the foxyproxy plugin with firefox, and the public IP address in the browser shows up as the server IP.</div><div>2) in CLI, from the server prompt, it shows the server IP.</div><div>3) in the terminal from a different tab, from the local folder prompt, it shows the local IP.</div><div><br></div><div>I was wondering if the server IP would carry over to a different terminal tab. My test so far says no. I wonder if there's a way (similar to the foxyproxy plugin) to get a local folder prompt to have a VPN-type functionality, to show the server IP.</div><div><br></div><div>In gratitude,<br>LeRoy</div><div><span><pre>-- <br></pre><span style="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; 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); -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none; display: inline !important; float: none;">There is something glorious birthing within all of us.</span><br style="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; 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); -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;"><span style="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-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-decoration: none; float: none; display: inline !important; background-color: rgb(255, 255, 255);">I am the Love of God, no matter what.</span><div><span style="background-color: rgb(255, 255, 255);">BSA<br style="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-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-decoration: none;"><span style="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-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-decoration: none; float: none; display: inline !important;">LeRoy Diener</span></span><br style="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; 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); -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;"><span style="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; 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); -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none; display: inline !important; float: none;">213-LEROYIZ</span><br style="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; 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); -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;"><span style="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; 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); -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="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; 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); -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;"><a href="https://leroydiener.com/" title="Click to open https://leroydiener.com/">https://leroydiener.com</a><br></div></div></span></div><div><br></div><div>On Mon, 2024-05-13 at 17:57 -0600, Akkana Peck wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Hi, LeRoy,<br></div><div><br></div><div>dig, host and curl all use a -4 flag to connect using IPv4. So:<br></div><div><br></div><div>curl -4 icanhazip.com<br></div><div><br></div><div>dig -4 +short myip.opendns.com @resolver1.opendns.com<br></div><div><br></div><div>host -4 myip.opendns.com resolver1.opendns.com | grep "myip.opendns.com has" | awk '{print $4}'<br></div><div><br></div><div>If you don't have dig, it's just an apt install away (or whatever equivalent command your distro uses).<br></div><div><br></div><div>What "crap" do you get from the host command?<br></div><div><br></div><div>All of these commands worked for me (and gave me IPv4 when I added -4).<br></div><div><br></div><div>        ...Akkana<br></div><div><br></div><div>LeRoy Diener writes:<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Hi NMGLUG folks,<br></div><div><br></div><div>I am familiar with using <a href="https://ipchicken.com/">https://ipchicken.com/</a> to find my public IP<br></div><div>address using the browser.<br></div><div>I would like to verify my public IP address using CLI as well as the<br></div><div>browser.<br></div><div>I found this<br></div><div>page <a href="https://www.tecmint.com/find-linux-server-public-ip-address/">https://www.tecmint.com/find-linux-server-public-ip-address/</a> with<br></div><div>4 ways.<br></div><div>The web page (last updated July 2023) shows that the results are in<br></div><div>IPv4, but my results are in IPv6.<br></div><div>I tried all four ways.<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>From the dig command, I get "bash: dig: command not found"<br></div><div>>From the host command, I get crap. When I remove the pipes I get stuff<br></div></blockquote><div>including an IPv6 address.<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>From the wget and curl commands, Iget an IPv6 address.<br></div></blockquote><div>The IPv6 address from 5 variations of wget and curl are all the same.<br></div><div>The IPv6 address from host is different.<br></div><div>I like curl ifconfig.me because it is easy to remember.<br></div><div><br></div><div>Here's the problem.<br></div><div>I would like to verify my public IP address using CLI as well as the<br></div><div>browser.<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>From ipchicken in the broswer, I get IPv4.<br></div><div>From the CLI, I get IPv6.<br></div></blockquote><div>How can I verify my public IP address?<br></div><div><br></div><div>In gratitude,<br></div><div>LeRoy<br></div><div>-- <br></div><div>There is something glorious birthing within all of us.<br></div><div>I am the Love of God, no matter what.BSA<br></div><div>LeRoy Diener<br></div><div>213-LEROYIZ<br></div><div>213-537-6949<br></div><div><a href="https://leroydiener.com">https://leroydiener.com</a><br></div></blockquote><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>_______________________________________________<br></div><div>nmglug mailing list<br></div><div><a href="mailto:nmglug@lists.nmglug.org">nmglug@lists.nmglug.org</a><br></div><div><a href="http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org">http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org</a><br></div></blockquote><div><br></div><div>_______________________________________________<br></div><div>nmglug mailing list<br></div><div><a href="mailto:nmglug@lists.nmglug.org">nmglug@lists.nmglug.org</a><br></div><div><a href="http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org">http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org</a><br></div></blockquote></body></html>