Roland Kuhn
Typesafe – The software stack for applications that scale.
twitter: @rolandkuhn
Hi Roland-So I have a workaround that seems to be working. Any reason that you would caution me not to do such a thing? Here are the important parts, recieveMessage is cut and pasted from NettyRemoteTransport and I add one more case clause, noted below...class NATFriendlyNettyRemoteTransport ... extends NettyRemoteTransport ...
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/8xnMYkvyTfoJ.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
To unsubscribe from this group, send email to akka-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
To unsubscribe from this group, send email to akka-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
Hello Roland,I just thought I could add my voice to this thread to show there is interest in Akka remoting over the untrusted internet.
First of all thanks to Scott and yourself for this simple and effective NAT-problem workaround: I've added the NATFriendlyNettyRemoteTransport class to my application and it works like a charm.
I'm using Akka in a game where there is both server-server communication and client-server communication. Server-server communication is bound to a "private" LAN (the Amazon EC2 cloud), but client-server communication can happen from anywhere on the internet and should not be filtered by default if real IPs (WAN-side) do not match declared IPs (LAN-side).
Furthermore, I think I've read that should it happen that two clients with the same IPs connect at the same time (which is highly probable as personnal LANs use the 192.168.{0,1}.x subnets) Akka will by default drop one of the two. This, it seems to me, belongs to the same class of problem as this thread is discussing about. Maybe there should be some design decision to solve both issues ?
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/63WmKphMLgAJ.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
This is correct: if using a random port (0) the clash would be rare,
but that would depend on the number of clients out there.
Whenever the number of clients would get in the hundreds, clashes
would be more frequent (many out there have IP 192.168.1.100).
Also, a clash could turn out to be entirely unacceptable in some applications.
I'm not sure how I'm going to solve this problem right now. Perhaps a
third field, the UID, could be generated randomly by the client and
used to identify the transaction more uniquely. Of course, this is not
secure (SSL would be required for security), but at least it could
avoid clashes.