Network programming --- ip & port

network programming

How to achieve communication network?

You must first know the address of both

  • ip
  • The port number

Between the transmission network to be performed by the layers of protocol

Protocol network programming primarily use the TCP UDP

summary

  1. Network Programming There are two main issues

    • How accurate positioning to one or multiple hosts on a network
    • After finding how to communicate with the host
  2. Elements Network Programming

    • IP and port number
    • Network communication protocol UDP TCP

Port Classification

  • Public ports 0-1023
  • HTTP:80
  • HTTPS:443
  • FTP:21
  • Telent:23
    • Program Registration port: 1024-49151, assign the user or program
      • tomcat:8080
      • mysql:3306
      • oracle:1521

** dynamic, private 49152-65535 **

Try not dynamic private port

Guess you like

Origin www.cnblogs.com/myblogswcz/p/12556397.html