-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Show IPv4 AND IPv6 #160
Comments
same! Please, add both ipv6 and ipv4 for ifconfig.co/json it only shows IP address and IP address (decimal) for my ipv6, but not ipv4 addr |
Since there seems to be a slight misunderstanding of how IP and echoip works allow me an attempt to explain: The point is: You can only speak one IP version for one connection (roughly equals one http request) and therefor only fin out one IP-Address per connection. What echoip does is simply return to you the IP address it sees as being the other end of the line (thick packet return address) to you in the format of your choice, all in one request, that is the reason it only returns one address. https://www.octopuce.fr/ip.php can display both addresses because it actually makes two (relevant for this case) requests from the client side (html, javascript "magic"), one to So with that in mind:
No, a single curl query can't give you both at the same time, you have to query twice with the
This doesn't work because you can't connect paths to addresses, this is why the subdomain trick is needed for browsers (yes javascript, but that won't work for curl, and why use js when the server perfectly capable of rendering html) Remains the question: Why were the I'll pass that one on to @mpolden |
Hi,
We cannot see IPv4 AND IPv6 if booth are available. Something like: https://www.octopuce.fr/ip.php
And add to the actual http://ifconfig.co/ip: http://ifconfig.co/ipv4 and http://ifconfig.co/ipv6 ?
Kind regards.
The text was updated successfully, but these errors were encountered: