In IPv6, how to write the IP address followed by the port?
IPV6 address string with port number. The address part should be enclosed in [], followed by':' with port number, such as [A0 1F::0]:8000. The double colon in [] indicates that the middle part is the compressed address part of IPv6, which needs to be extended when used in the program.