-
-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server based on protoactor with address 0.0.0.0 doesn't work #833
Comments
For 0.0.0.0, you need to also set an "AdvertisedHost", so that remote systems know what to connect to. as you cannot remotely connect to 0.0.0.0. |
I know about |
@rogeralsing I have the following definition of server app:
When I start server first and after that - client, then I have the following output on server:
You can see, that i have the similar output with 2 connect requests:
As the result, interaction between client and server doesn't work. So, usage of |
@rogeralsing |
Describe the bug
I made server and client apps with help of protoactor library as the transport. When server has real address (e.g.
127.0.0.1
), then all work well. When server has0.0.0.0
address, then interaction between server and client doesn't work.To Reproduce
I have the following definition with messages for protobuf:
I have the following definition of server app:
I have the following definition of client app:
Let's server has
127.0.0.1
address (defined inhost
const in the server app definition). When we start server first and after that - client, then we have the following output on server:and on client:
Let's server has
0.0.0.0
address (defined inhost
const in the server app definition). When we start server first and after that - client, then we have the following output on server:and on client:
Anyone can see the following:
127.0.0.1
address, interaction between server and client has place: client sends RequestTypeA message on server and receives ResponseTypeA message from server.0.0.0.0
address, interaction between server and client doesn't have place: anyone can see the following error on client -Request error "future: timeout"
127.0.0.1
address, anyone can see only one connect request:2023/03/22 19:45:20 DEBUG [REMOTE] EndpointReader received connect request message=server_connection:{SystemId:"CxAjoFiLPXHXCXp5yoUPJW" Address:"127.0.0.1:34444"}
0.0.0.0
address, anyone can see two connect requests:2023/03/22 19:53:18 DEBUG [REMOTE] EndpointReader received connect request message=server_connection:{SystemId:"JgBn2wcP3TNW4HwP9Gm9vg" Address:"127.0.0.1:34444"}
and2023/03/22 19:53:18 DEBUG [REMOTE] EndpointReader received connect request message=server_connection:{SystemId:"5UKtdU7DkjnAovWJ65fsvQ" Address:"[::]:23333"}
Expected behavior
Server must work correctly and equally for both case of addresses - real (e.g.,
127.0.0.1
) and0.0.0.0
. Moreover, I made the same example on .NET with help of protoactor.NET library and this example work correctly for both case of addresses - real (e.g.,127.0.0.1
) and0.0.0.0
.Screenshots
None
Additional context
None
The text was updated successfully, but these errors were encountered: