Is your router port-forwarded? Do you have no-ip set up? Did you change the server = on the client.java? Do you have the right jdk verison, did you change the jdk to match yours on your compiler? Are you running the source and running the client at the same time?
If you are doing all of those, then it should work.