Getting my ip address

后端 未结 12 1168
走了就别回头了
走了就别回头了 2020-12-16 23:34

I have a computer on a small network, so my ip is 192.168.2.100.

I am trying to get my real ip. I download the no-ip client but that just seems like a lot of trouble

12条回答
  •  旧巷少年郎
    2020-12-17 00:02

    Some routers can tell you their external IP address via UPnP, or more specifically, the IGD protocol. If you happen to own an UPnP enabled router, you can try this. IStaticPortMapping::get_ExternalIPAddress sounds promising.

    SNMP enabled devices can tell you their IP addresses, too. The OID to ask for is IP-MIB::ipAdEntAddr.

提交回复
热议问题