IP address introduction:
Any device that can access the Internet must have an IP address;
And each IP address is equivalent to everyone must have a name;
Common IP addresses look like, such as the default address of TP-Link wireless routing:
192.168.1.1
Configure the IP address of your own network card:
192.168.1.2 255.255.255.0
Note:
The IP address must appear in pairs with the subnet mask, otherwise it is meaningless;
Check the IP address configuration of your own network card:
1. Through the graphical interface (click with the mouse )-That is, the win system
2. Through the command line
#Open the run, enter cmd, and call up the "command line window";
#Enter the command: ipconfig #
ipconfig /all-& gt; View all the network cards of the device
information;
Quickly call "Run" ----- start R;
---- -------------------------------------
Connectivity test tool - ping;
Working principle:
1. Send a "request packet" - request to the specified target IP address 2. The target device returns a "reply packet" - reply;
For example: ping successful!
PC>ping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data:
Reply from 192.168.1.2: bytes=32 time=0ms TTL=128
Reply from 192.168.1.2: bytes=32 time=0ms TTL=128
Reply from 192.168.1.2: bytes=32 time=0ms TTL=128
Reply from 192.168.1.2: bytes=32 time=0ms TTL=128
Ping statistics for 192.168.1.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
--------------------------------- -------------
For example: ping failed!
PC>ping 192.168.1.3
Pinging 192.168.1.3 with 32 bytes of data:
Request timed out. (The default timeout is 2s=2000ms)
Request timed out .
Request timed out.
Request timed out.
Ping statistics for 192.168.1.3:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Shortcut command:
Press ctrl and c at the same time to quickly terminate the ping command;
Special ping command:
ping 127.0.0.1
This address represents the device itself;
#The command indicates that you send your data packet to yourself; , check whether the device's own network card/port
is functioning normally!
Classification of IP addresses: (x.x.x.x)
Goal: To facilitate the management of IP addresses;
Principle:
Look at the first few fixed bits of the first byte in the IP address;
0000 0000. 0000 ----> 0
0111 1111 ----> 127
B The first byte, the first 2 bits, if it is 10, it is called B
128-191 Default mask 255.255.0.0
1000 0000 --->128
1011 1111 --->191
C The first byte, in front 3 bits, if it is 110, it is called C
192-223 Default mask 255.255.255.0
D The first byte, the first 4 bits, if it is 1110, it is called D
224-239 No mask
E The remaining
240-255 are reserved for use in the laboratory. If you don’t understand this bit of IP address, you can leave it alone. Subnet mask It is also important to remember that the IP address and subnet mask must appear in pairs, this is very important! ! !
Class A address 0-127
Class B address 18-191
The above is the detailed content of What are the classifications of IP addresses?. For more information, please follow other related articles on the PHP Chinese website!

cmd查看局域网所有ip的方法:1、按“Win+R”快捷键打开“运行”窗口;2、在“运行”窗口中输入“CMD”后,按回车键;3、在打开的“命令提示符”界面中,输入命令“arp -a”并按回车键;4、从返回结果就可以看到本地局域网中的所有与本机通信的计算机IP地址。

主机的域名和主机的ip地址两者之间的关系是:一个IP地址对应多个域名。IP地址用数字化形式来对计算机网络中的主机进行网络标识,域名用字符化形式来对计算机网络中的主机进行网络标识。在Internet中,一个域名之内能够对应一个IP地址,但是一个IP地址可以被多个域名所对应。

每一台主机都有唯一的地址标识称为“IP地址”。IP地址是IP协议提供的一种统一的地址格式,它为互联网上的每一个网络和每一台主机分配一个唯一的逻辑地址,以此来屏蔽物理地址的差异。由于有这种唯一的地址,才保证了用户在连网的计算机上操作时,能够高效而且方便地从千千万万台计算机中选出自己所需的对象来。

随着网络的快速发展,IP地址成为了网络通信中不可或缺的一环。在进行网络安全监测、流量管理、电商广告定向投放等方面,IP地址的信息非常重要。因此,为了方便用户查询IP地址/域名信息,许多网站提供了IP地址查询功能。本篇文章将介绍如何用PHP实现IP地址查询功能,供读者参考。一、何为IP地址?IP地址(InternetProtocolAddress)即网络协

ip地址是由32或128位二进制数组成。IP地址是IP协议提供的一种统一的地址格式,IP地址分两种:1、ipv4地址,由32位二进制数组成,用点分十进制表示,每八位划分,也就是四个0~255的十进制数;2、ipv6地址,由128位二进制数组成,用点分十六进制表示,每八位划分,也就是十六个0x00~0xff的十六进制数。

ip地址后面的“/24”表示掩码位是24位的。IP地址是四个十进制数组成的,相当于32位二进制;而ip地址后面斜杠加具体数字是一种用CIDR形式表示的一个网段,或者说子网。ip地址后“/24”指32位二进制的前24位用"1"表示,后面8位用0表示,即“11111111 11111111 11111111 000000”;将其转化为十进制,就是“255.255.255.0”。

一、前言环境:jdk1.8+idea2019.3+Windows10二、摘要项目开发中,在日常处理操作日志时,基本都会通过aop切面来实现用户操作日志的记录,但涉及到记录操作日志,想必肯定会有一项是基本都会参考记录的,那就是操作人的客户端ip地址,日后查"脏"也方便。那么问题来了。具体怎么获取客户端的ip地址啊?哈哈哈,这就是我这期的教学内容,若是有的小伙伴知道怎么获取,那么我要表扬你,但是实现思路是否与我有同异?所以你也可以尝试看下bug菌是如何实现的吧。接下来,我就开始教

ping不通ip地址的原因有:1、对方关机或ip地址不存在;2、网段不同,通过路由无法找到;3、防火墙过滤了ping发出的ICMP数据包;4、ip地址设置错误;5、网线故障;6、未设置网关。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

Notepad++7.3.1
Easy-to-use and free code editor

Atom editor mac version download
The most popular open source editor

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.
