Porting the HnH client to the iPhone is probably more or less impossible, since Apple doesn't even allow running Java on them. :P
Porting it to Android phones may be possible, however and, as has been discussed previously, might be an interesting exercise. If anything, the Dalvik VM that is used on Android does seem to suck a bit; in particular, it seems to be using a mark-and-sweep GC, which will probably clash with the client's memory allocation patterns and cause lots of GC lag.
Thurrok wrote:However, coding a new client from scratch would mean knowing the mechanics of server-client communication, which, if I'm not mistaken, is part of loftar's proprietary server code, since making it accessible to the public would promote hacking.
The protocol itself isn't secret at all. You can read all about it in code form in the haven.Session class. Making it "secret" would be pointless anyway, since it could be reverse-engineered by anyone.
Thurrok wrote:I remember reading a thread in Bugs where a guy manipulated outgoing traffic to make the server think he harvested 100 carrots instead of one and got 40k lp each time he harvested a plant.
I do honestly doubt that was true, though. They never managed to reproduce it.