Skip to content

does renet work on real remote servers? deployment on ec2 doesn't work, maybe a bug? #52

Answered by lucaspoffo
bcolloran asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, sorry about the late reply

The problem seems to be at this line: https://gist.github.com/bcolloran/f499cfffcce3d8346f281a463934ef6a#file-echo_ec2-rs-L66

When creating the ServerConfig the server_address given to it must be the public address that the client will communicate to the server. So you can bind the socket to 0.0.0.0:0, but you need to pass to this configuration the public address of the ec2 machine with the used port.

Edit: make sure you have port forwarding and the firewall (if the machine has one) working correctly. This is a common problem.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lucaspoffo
Comment options

Answer selected by lucaspoffo
@0crispy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants