-2

alt spelling: https://forums.tomshardware.com/threads/restart-software-loopback-interface.2880183/
is there a way to restart Software Loopback Interface without restarting windows ?

to reproduce:

route delete 127.0.0.1 0.0.0.0 if 1
route add 127.0.0.1 0.0.0.0 if 1
ping 127.0.0.1

output (tested on win11):

Pinging 127.0.0.1 with 32 bytes of data:
General failure.
General failure.
General failure.
General failure.

Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

___
background information:
using route print, if 1 (interface 1) is:

  1...........................Software Loopback Interface 1
user207421
  • 305,947
  • 44
  • 307
  • 483
Mr. Doge
  • 796
  • 5
  • 11

1 Answers1

1

this probably doesn't "restart" the interface but it does the job:

netsh interface ip set address "Loopback Pseudo-Interface 1" static address=127.0.0.1 mask=255.0.0.0 gateway=none

output:

>ping 127.0.0.1

Pinging 127.0.0.1 with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
Mr. Doge
  • 796
  • 5
  • 11