The project supports http and https access, and webSocket uses wss to access why only domain names can be used, not IP.

problem description

the project supports http and https access. WebSocket can be accessed by either ws or wss. Wss must be accessed by domain name, otherwise it cannot be accessed without IP,.

the environmental background of the problems and what methods you have tried

looked up the difference between domain name access and IP access. Domain name access is one more step of domain name resolution than IP access, but the final access is IP.

related codes

/ / Please paste the code text below (do not replace the code with pictures)
none

what result do you expect? What is the error message actually seen?

I don"t understand the principle of

. I hope someone can answer it.

Jan.27,2022

your domain name can apply for a certificate, how do you apply for a certificate in ip?

< hr >


httpsip


wssio
clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e55055-44032.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e55055-44032.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?