Greetings, people of the javaGaming forum! I am new here as I have been using different forum, but they were unable to answer this question so I came here. I am a hobbyist Java game writer and I just added online multiplayer to my most recent game, Anaconda other A, which is like snake only with a lot more game modes. When I first wrote it I thought the difficult part would be establishing a connection between two computers, and so after I had written the code that allowed two Java programs to communicate, I immediately checked if it still worked on other computers and across networks. It did, without any changes required, so I went on to finish the game without conducting frequent checks to see if it still worked on multiple computers.
Now I have finished it, and when I run it on my computer, it works like a charm (actuly better since charms don't work :P ) but when I run it on two different computers, the client crashes the moment the games starts. :'( I am using sockets, and will post the code if requested, but seeing as it's like 900 lines long I think I won't unless you want me to. I have yet to test it on many different computers, and on the few I have tested I have noticed that some will refuse entirely to host a game, while others will only host games and wont be a client. I tried disabling my firewall, but it changed nothing, I tried reading the error messages, but they were all "unidentified" and pertains mostly to the graphics portion of the software, making vague references to the AWT thread. they were also were long and seemed to change a little each time. ???
Any and all help is appreciated. :)
Doby162