-
Notifications
You must be signed in to change notification settings - Fork 0
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
add "corona" instructions #2
Comments
It should be possible if the machine that runs the server has a public ip address. But unfortunately it does not work for me: I ran into the same error some while ago with Cloud Haskell and created an issue [1]. It happened when I tried to connect clients and servers via LAN. |
is this in your |
Yes, but unfortunately it does not work in the case of corona, just for LAN. |
I can't even get it to work inside one LAN (behind a home router) (server hangs at "waiting for clients to join", client dies with ".. timeout. No process name at address ..") wireshark shows packets flowing (between designated server port, 3000, and ad-hoc client port, like 46514) (but not to designated client port, 3001). I've seen it work in a different LAN (at work). Perhaps something about broadcasting? firewall? public server with private (NAT) clients probably does not work because the server wants to send pings to the clients so they must be reachable. server and client must in any case run identical binaries? because messages represent functions in closures by actual machine code addresses - these must be identical on both sides. But as long as we don't send closures? |
This could be a problem related to some firewall. We use network-transport-tcp, so when setting up connections via TCP works with other programs, I think it "should" work with nt-tcp, too. You can try running netcat ( Then run this on the client to connect to the server: When a connection via TCP is set up, the machines then can send text to each other. If there is a problem with your firewall or something else, this would not work.
This is right, we don't send closures, so the binaries do not need to be identical, I tested this some time ago. |
If two clients are behind NAT (of their respective home router), can they still play? E.g., by running a server that has a public IP address?
The text was updated successfully, but these errors were encountered: