ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Linux服务器查看外网IP地址

    May 5, 20223 min read
    Curl 纯文本格式输出:
    curl cip.cc
    curl icanhazip.com
    curl ident.me
    curl ipecho.net/plain
    curl whatismyip.akamai.com
    curl tnx.nl/ip
    curl myip.dnsomatic.com
    curl ifconfig.me
    curl ip.appspot.com
    curl curlmyip.com
    curl www.trackip.net/i
    curl ipinfo.io/ip
    curl -s checkip.dyndns.org | sed 's/.*IP Address: \([0-9\.]*\).*/\1/g'
    

    脚本

    #!/bin/bash
    PUBLIC_IP=`wget http://ipecho.net/plain -O - -q ; echo`
    echo $PUBLIC_IP
    

    相关文章

    大粪 miui+ 连接不上

    大粪 miui+ 连接问题可通过重启 MAFSvr 服务解决。

    JS 正则匹配中文

    该代码段使用正则表达式匹配并提取字符串中的中文字符。

    VMWarevSphere6 企业版参考序列号

    本文列出了多个VMware vSphere 6企业版的参考序列号。

    函数的调用栈是怎么工作的?

    函数调用栈通过在栈顶添加和移除帧来管理函数调用信息,使得嵌套调用和函数间数据访问成为可能。

    JavaScript中ASCII码与Unicode码互转的实现方式有哪些?

    在JavaScript中,实现ASCII码与Unicode码互转的方法包括使用Python代码示例中的`ascii_to_unicode`和`unicode_to_ascii`函数,但需注意这些方法可能不适用于所有字符集和编码。