Linux + Formula To Convert IPV6 Address To IP Address
Formula to convert IPv6 Address to IP address number
I'm looking for a formula to convert IPV6 address to IP address .
for example - lets say we have the ipv6 as the following
Input IPV6 address : 2001:0db8:0000:0000:0000:ff00:0042:8329
Output IP Number converted : 32.136.7.34
Answer
to IP address
As already written in the comments, the word "IP address" may both be an "IPv6 address" and an "IPv4 address".
And it is even worse: As far as I remember the latest RFCs correctly, the correct answer to the question: "What is the IP address of that computer?" is the IPv6 address (and not the IPv4 address) if the computer both has an IPv4 and an IPv6 address!
I'm looking for a formula to convert IPV6 address to IP address.
The first questions is: Does the SSH server have an IPv4 address at all?
This is not neccessarily the case.
And if it has an IPv4 address, it is not possible to calculate it from the IPv6 address because both addresses are completely unrelated to each other.
how ? when using ssh , how to ssh to ipv6?
The next question is: Does the client computer have an IPv6 address at all?
If your computer has an IPv6 address, you can simply connect to an IPv6 address using SSH:
ssh 2001:0db8:0000:0000:0000:ff00:0042:8329
If your computer does not have an IPv6 address (e.g. because your internet provider does not support IPv6), you have to find out the IPv4 address of the SSH server.
As I already wrote, you cannot calculate that address but you have to ask the person that operates that server.
If the SSH server does not have an IPv4 address and your computer does not have an IPv6 address, it will get rather difficult. Maybe you even have to pay for a service that can "translate" IPv4 to IPv6...
Related Questions
- → Database Record created_at Time Randomly Changes
- → npm is putting all dependencies and sub-dependecies int he same folder
- → Laravel 5.2 not working with vagrant homestead php 7
- → Can't add cron task in Laravel 5.0.5 on linux server
- → Node.js Split large file into parts and iterate over the parts
- → Laravel - Connection could not be established with host smtp.gmail.com
- → Redirect Each Page of Old Domain to Same Page URL on the New Domain
- → October CMS - Cannot edit pages in backend - http status 403
- → The Laravel View is Not Working On Linux Server
- → How to get a value in an array that's in a list of arrays in javascript
- → Beanstalkd to start when the system starts up or reboots , how to uncomment "START yes" on Centos
- → Vagrant with homestead and Linux boxes
- → Only one route not returning anything on live Laravel site, works on local sites