首页 > 其他 > 详细

如何查看服务器的公网出口IP

时间:2020-12-02 23:21:26      阅读:70      评论:0      收藏:0      [点我收藏+]
由于种种原因,公司内部使用的服务器需要和云主机发生关系。。。

所以就需要知道内网服务器的出口公网地址

之前被这个事困扰过,前几天想起来于是解决了下,简单记录下几种方法

curl icanhazip.com
curl ifconfig.me
curl ipinfo.io/ip

cur是一个命令行工具,用来请求web服务器,是一个利用URL语法在命令行下工作的文件传输工具

DESCRIPTION
       curl is a tool to transfer data from or to a server, using one of the supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS,
       IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP).  The command is designed to work  without
       user interaction.

如何查看服务器的公网出口IP

原文:https://blog.51cto.com/sugarlovecxq/2558498

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!