B4J Question [Solved]One questions about websockets

schimanski

Well-Known Member
Licensed User
Longtime User
I try to connect my client with the server over a websocket-connection. I have a questions about it:

1. When I connect to the local IP, the client gets a working connection to the server. If i try the same to my static ip, it is not possible to connect. Is there another syntax as ws://xx.xxx.xxx.xxx:51052?

Thank you for answer..
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

schimanski

Well-Known Member
Licensed User
Longtime User
Thanks for answer..I need it for b4i and Client.SetCustomSSLTrustManager is not supported...
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
What is the error message (if any)? Is the static IP tied to a router or to the machine directly that you are trying to access?
 
Upvote 0

schimanski

Well-Known Member
Licensed User
Longtime User
Thank you for answer. I first try to use non-ssl to my static IP. It is an public static IP from a provider, that links to my router. My server is reachable over http and https. But it is not possible for me to make a socket-connection to this ip. I deactivated the firewalls etc. When I connect to "ws://192.168.1.127:51042/ws" it works, but not with "ws://89.163.2xx.xx:51042/ws". Then I get the message:

Closed: Stream end encountered
 
Upvote 0
Top