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

Menu