top | item 40503896

(no title)

RKearney | 1 year ago

> On macOS, I can't ping or bind to 127.0.0.2

     uname -a
    Darwin LT-JT6692XPXJ 23.5.0 Darwin Kernel Version 23.5.0: Wed May  1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64
    
    ~
     ifconfig lo0
    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
     options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>
     inet 127.0.0.1 netmask 0xff000000
     inet6 ::1 prefixlen 128
     inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
     nd6 options=201<PERFORMNUD,DAD>
    
    ~
     ping -c 1 127.0.0.2
    PING 127.0.0.2 (127.0.0.2): 56 data bytes
    
    --- 127.0.0.2 ping statistics ---
    1 packets transmitted, 0 packets received, 100.0% packet loss
    
    ~ 11s
     sudo ifconfig lo0 add 127.0.0.2
    Password:
    
    ~
     ping -c 1 127.0.0.2
    PING 127.0.0.2 (127.0.0.2): 56 data bytes
    64 bytes from 127.0.0.2: icmp_seq=0 ttl=64 time=0.824 ms
    
    --- 127.0.0.2 ping statistics ---
    1 packets transmitted, 1 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 0.824/0.824/0.824/nan ms
    
    ~
     ifconfig lo0
    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
     options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>
     inet 127.0.0.1 netmask 0xff000000
     inet6 ::1 prefixlen 128
     inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
     inet 127.0.0.2 netmask 0xff000000
     nd6 options=201<PERFORMNUD,DAD>
    
    ~

discuss

order

No comments yet.