Avatar of Jasmin shahrzad
Jasmin shahrzad

asked on 

windows return ::1: for ping

i stop ip6 in windows but for ping a hostname in windows 10 i have return   ::1:
how to change it?
it should return ip address
Windows 10Windows OSWindows Networking

Avatar of undefined
Last Comment
Jasmin shahrzad
Avatar of McKnife
McKnife
Flag of Germany image

write
ping targetname -4
Avatar of ste5an
ste5an
Flag of Germany image

::1: is an IP address. Its localhost/loopback. The equivalent of 127.0.0.1.
Avatar of Jasmin shahrzad
Jasmin shahrzad

ASKER

@ste5en: i know it's loopback for localhost but how to disable that. what i want is ping should show ip address.
@McKnife: tagetname -4 show correct but i want ping target show that.
it was always did. i don't now what happen
Avatar of McKnife
McKnife
Flag of Germany image

That happens, because IPv6 is in use. What's so bad about writing -4 to activate IPv4 pings?
Avatar of Jasmin shahrzad

ASKER

Then i should change all my scripts. i don't understand i disabled ip6 in my windows network.
why should it return ::1: .  where is it in regedit to say what it should return?
Avatar of ste5an
ste5an
Flag of Germany image

This normally means deactivating the entire IPv6 stack on all interfaces. Seeing ::1:, means that the IPv6 stack is not disabled.

Thus, how did you "stop" IPv6?
Avatar of Jasmin shahrzad

ASKER

from ethernet properties i remove tic from tcp/ipv6
Avatar of ste5an
ste5an
Flag of Germany image

Did you remove it from all interfaces? Did you restart your machine before testing?
Avatar of Jasmin shahrzad

ASKER

i remove it from ethernet properties and not other (i do not know where it should appear ).  i restart after removing.
after removing coming ::1: but before it show ip6 ip address.
Avatar of ste5an
ste5an
Flag of Germany image

When PowerShell is enabled, run

Get-NetAdapterBinding -ComponentID ms_tcpip6

Open in new window

to show your current state. Maybe you want to post the output.

Run
Disable-NetAdapterBinding -Name "*" -ComponentID ms_tcpip6

Open in new window

from an elevated prompt for deactivating it.
Avatar of Jasmin shahrzad

ASKER

ok. then first line show:
name                                 .....         ...    enabled
----------------                                              ----------------
ethernet 3                                                  false

it is already disabled. And there is only one.
Avatar of McKnife
McKnife
Flag of Germany image

@jasmin: no offense, but what script would require the ping response to be in ipv4 notation? I see no use case - please explain.
Avatar of David Favor
David Favor
Flag of United States of America image

Tip: Best to always leave the localhost IPV6 address working, as some code completely bypasses the resolver code, to use this interface.

If you remove this interface completely, some code may fail oddly.
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Jasmin shahrzad

ASKER

Thanks
Windows OS
Windows OS

This topic area includes legacy versions of Windows prior to Windows 2000: Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions including Windows Mobile.

129K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo