i have two domain name and i need to use one as http/https address and the other as websocket (ws) address,
how can i do that?
change websocket address
-
- Site Admin
- Posts: 5878
- Joined: Wed Mar 19, 2008 8:47 pm
Re: change websocket address
The websocket domain/IP has to match the app domain/IP. Why would you want to do that?
Re: change websocket address
because i want to run my app on my pc and use tunnel to forward my users to my pc,
my tunnel app is like ngrok
my tunnel app is like ngrok
-
- Site Admin
- Posts: 5878
- Joined: Wed Mar 19, 2008 8:47 pm
Re: change websocket address
I don't know what ngrok is but I still don't see what you are trying to accomplish.hootan wrote:because i want to run my app on my pc and use tunnel to forward my users to my pc,
my tunnel app is like ngrok
Re: change websocket address
ngrok is tunnel forwarder,
it make a random domain to share between your users,
so you can use your personal pc as server and share your hosting on that random domain.
but for each port it make a random domain, so if my client want to connect to my server as websocket it should connect to my second random domain.
it make a random domain to share between your users,
so you can use your personal pc as server and share your hosting on that random domain.
but for each port it make a random domain, so if my client want to connect to my server as websocket it should connect to my second random domain.
-
- Site Admin
- Posts: 5878
- Joined: Wed Mar 19, 2008 8:47 pm
Re: change websocket address
Even if that was possible in Poker Mavens (it is not), I suspect most browsers would reject the websocket attempt because it would violate their same-origin policy.