Make sure you run the program in Homework 2 in server mode:
java -server Main
MacOS X runs in this mode by default; Windows (and possibly Linux?) runs in client mode by default. You are much more likely to see the interference problems if you run the program in server mode.