Every computer on the Internet will have a unique 32-bit address, ip address
When we access the server, we must use this ip address
The local area network also has a reserved ip address Beginning 192/10/172. The IP address of the LAN is also the only
NAT mode. The IP of the computer host is unique in the LAN. The selected NAT mode creates a virtual machine, and the virtual machine is a new LAN (private network).
The teacher’s machine IP is 192.168.33.128
The simple concept of port,
192.168.33.128 represents a host, but there may be many services on the host,
Different service functions on a host are distinguished by ports and then accessible by outsiders.
SSH remote connection service 22
The simple concept of the protocol,
Chinese, English, French, different services provide different ports, corresponding to different functions, communication The methods may also be different, and we can understand this communication method as a protocol.
On a host, different service functions are distinguished through different ports, and communication between the client and the server may require different protocols.
ip,port,protocol (protocol)
Remote connection service.
Troubleshooting:
1. Whether there is smooth communication between the two machines, check the physical network (wireless network card, ip is correct)
ping ip -t to detect the physical network Is it smooth?
No communication:
a. There is a problem with the physical link from the client to the server
Network card, IP, network cable, firewall
2, Is the service good?
Is the ssh service good?
Detection method: Operate on which machine you connect from
telnet 192.168.33.128 22 (server’s ip and port)
telnet can also connect remotely, but because it is not encrypted, few people use it.
Possible reasons for failure:
a. The server port is blocked by the firewall
[root@oldboy ~]# /etc/init.d/iptables stop iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Flushing firewall rules: [ OK ] iptables: Unloading modules: [ OK ]
b. The port is not open, and the server does not monitor the port you are connecting to
[root@oldboy ~]# netstat -tunlp | grep 22 (以ssh服务22端口为例) tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1559/sshd tcp 0 0 :::22 :::* LISTEN 1559/sshd /etc/init.d/sshd restart (重启ssh服务)
Client tools: SecureCRT, Xshell, putty
Server-side ssh service, process name sshd, openssh (for connection), openssl (for encryption)
The above is the detailed content of How to understand ip port protocol. For more information, please follow other related articles on the PHP Chinese website!

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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

WebStorm Mac version
Useful JavaScript development tools

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

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

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.

SublimeText3 Chinese version
Chinese version, very easy to use
