I have a script which sends a request to another server but problem is that IPv6 does not supported so if I send IPv6 then give error so i need thi
IPv6
You can't.
Only the IP address the request came from is available.
There's no reliable way to identify other IP addresses (my laptop currently has 12 IP addresses) that route to the same computer.