Get your ip fast11/30/2023 ![]() (Note: there are some fast responses with empty content - those are invalid.)īest average ping times: 10.210 /// My results that I got on from Warsaw - the addresses have been changed to protect the innocent:īest http response times: 0.086s - answer='172.31.133.7'īest https response times: 0.028s - answer='' You can run it yourself to see which services mentioned here are worth using: wget This is the source of my externalip-benchmark script that I used: Some have very inconsistent response times. Many don't work over HTTPS, or do work but have invalid certificates. one of the most widely recommended was almost always the slowest for me, sometimes taking many seconds to respond. I made a benchmark to see if any of them are better than the others and I was surprised by the results. There are a lot of options of different servers providing the external IP especially via HTTP posted here or elsewhere. Using FTP: echo close | ftp 4. | awk ''Īll of the above can be run using my externalip script as: externalip dns With telnet command: telnet 4. 2>&1 | grep IPv4 | cut -d' ' -f4 ![]() With nc command: nc 4. 23 | grep IPv4 | cut -d' ' -f4 ![]() The fastest using HTTPS with a valid cert: curl -s TL DR - Fastest methods in 2015 The fastest method using DNS: dig +short using externalip: externalip dns NOTE: This is about external IP address (the one that the servers on the Internet see when you connect to them) - if you want internal IP address (the one that your own computer is using for connections, which may be different) see this answer. Got answer: ->HEADER<<- opcode: QUERY, status: NOERROR If you suspect a different issue (with the upstream provider, the command-line tool, or something else) then run the command without the +short option to reveal the details of the DNS query. If the command is not working for some reason, there may be a network problem. $ dig TXT. +shortĮxample alias that specifically requests an IPv4 address: # Īlias wanip6='dig TXT. +short -6' # Supports IPv6 + IPv4, use -4 or -6 to force one. # but has the benefit of working with private DNS proxies. # NOTE: This returns only an approximate IP from your block, Various DNS providers offer this service, including OpenDNS, Akamai, and Google Public DNS: # OpenDNS (since 2009) For example, when connecting over IPv6, it cannot return the A address. Note that it can only return the address used for the connection. To require the response be an IPv4 address, replace ANY with A for IPv6, replace it with AAAA. To prefer IPv4 or IPv6 connection specifically, use the -4 or -6 options accordingly. ![]() The ANY query type returns either an AAAA or an A record. +short (Display nothing except short form of answer) Perhaps alias it in your bashrc so it's easy to remember # Īlias wanip='dig +short'Īlias wanip4='dig +short -4'Īlias wanip6='dig AAAA +short -6' Using dig with an OpenDNS resolver: $ dig +short
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |