首页 > 其他分享 >How can I know an IP is a public IP or not?

How can I know an IP is a public IP or not?

时间:2023-03-28 14:56:02浏览次数:30  
标签:0.0 address private ranges How IP public

How can I know an IP is a public IP or not?

To determine whether an IP address is public or private, you can compare it to a list of private IP address ranges specified in RFC 1918. If the IP address falls within one of these ranges, it is a private IP address and not accessible from the internet:

  • 10.0.0.0 - 10.255.255.255 (10/8 prefix)
  • 172.16.0.0 - 172.31.255.255 (172.16/12 prefix)
  • 192.168.0.0 - 192.168.255.255 (192.168/16 prefix)

If the IP address does not fall within one of these ranges, it is a public IP address and is accessible from the internet. Note that there are some special IP address ranges that are reserved for other purposes, such as loopback addresses (127.0.0.0/8) and link-local addresses (169.254.0.0/16), but these should not be used for public internet communication.

 

标签:0.0,address,private,ranges,How,IP,public
From: https://www.cnblogs.com/chucklu/p/17265127.html

相关文章

  • Jelastic云平台集成Eclipse
    作者:chszsJelasticInc.公司是最具创新性的Java云托管平台的创建者,宣布Jelastic云平台与Eclipse集成,提供了Jelastic插件,加速JavaEE下面的开发和部署,并且可以在Eclipse内管......
  • HCIP-OSPF实验
      实验要求:1.R4为ISP,其上只能配置IP地址;R4与其他所有直连设备间均使用公有IP2.R3-R5/6/7为MGRE环境,R3为中心站点3.整个OSPF环境IP基于172.16.0.0/16划分4.所有设备......
  • IP协议
    IP协议轻解网络系列又来了,今天咱们说说IP协议,这可是网络协议中最最核心的一个协议了,还记得我们刚刚知道什么是IP地址、怎么给电脑修改IP的时候吗?今天我们就来探究一下......
  • IntelliJ IDEA 怎样关闭重复代码提示:Show all duplicates like this
    IDEA提示如下:ShowallduplicateslikethisDonotdetectduplicatesofthissize  1.打开左上角File-->Settings,选择Editor-->Inspections  2.找到Gen......
  • 代码随想录day 28 93.复原IP地址 | 78.子集 | 90.子集II
    给定一个只包含数字的字符串,复原它并返回所有可能的IP地址格式。有效的IP地址正好由四个整数(每个整数位于0到255之间组成,且不能含有前导0),整数之间用'.'分隔。......
  • BIP发送通知
    packagecom.yonyou.mls.srm.mlssrmkkgys.deliveryplan.service.impl;importcom.yonyou.cloud.apm.internal.com.alibaba.fastjson.JSONObject;importcom.yonyou.iua......
  • Crystal Reports for Eclipse(2)
    CrystalReportsforEclipse(2)创建一份新报表1、选择数据源通过数据库浏览器(DatabaseExplorer),你可以选择大多数数据源。当你从头创建一个空白报表时,数据库浏览器将会出现......
  • JavaScript基础
    1.引入jshttps://www.w3cschool.cn/javascript/用script标签,在其中写js代码<scriptsrc="JS/style.js"></script>Numberjs不区分小数和整数NaN表示不是一......
  • 如何通过iPaaS快速集成SAP ERP
    SAP(Systems,ApplicationsandProductsinDataProcessing)是一家德国软件公司,成立于1972年。SAP是全球领先的企业软件解决方案提供商,其产品覆盖了多个业务领域,包括财务......
  • macOS Big Sur 11.7.5 (20G1225) 正式版 ISO、PKG、DMG、IPSW 下载
    本站提供的macOSBigSur软件包,既可以拖拽到Applications(应用程序)下直接安装,也可以制作启动U盘安装,或者在虚拟机中启动安装。2023年3月27日(北京时间28日凌晨......