Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   Java chat program, works on single PC, but not over internet? (http://www.go4expert.com/forums/java-chat-program-single-pc-internet-t16523/)

rolls 12Mar2009 17:49

Java chat program, works on single PC, but not over internet?
 
I got bored so I started writing a chat client in java, its IRC style, a server and as many clients as you want. It works fine on a single computer (using 127.0.0.1 as the IP) but not over the internet.

I've tried running the server and client on my home PC, set up the ports to be forwarded on my router and enabled them in the windows firewall but I get the error "Connection refused" when trying to connect using my external IP (ISP) address, same with me running the server and a mate running the client.

The class chatHandler was basically stolen off the internet, the rest I wrote myself or modified bits of code to suit. I wrote it in netbeans with the GUI builder.

I've hosted both projects in the single zip, if you want to run the application just open the .jar file in the dist folders, or view the source via the src folder, or alternatively you can load the project up in NetBeans so its easier to play with the GUI.

So yeah if anyone can help me out with why its not working that'd be great, I've added the port to my firewall (default 60111). My ultimate goal is to implement an actual protocol so it isn't just sending plain text, then I can easily send files to mates etc.

The file uploaded is in RAR format but with a ZIP extension, this so was so I could upload it and keep it under 400kb.

shabbir 12Mar2009 18:16

Re: Java chat program, works on single PC, but not over internet?
 
Removed the attachment and Added the rar extension so now you can upload rar files as well.

rolls 12Mar2009 21:03

Re: Java chat program, works on single PC, but not over internet?
 
1 Attachment(s)
Heres the file again

rolls 31Mar2009 16:57

Re: Java chat program, works on single PC, but not over internet?
 
Yey I got it working, for some reason the person I was testing it with it didn't work for but it does with everyone else.


All times are GMT +5.5. The time now is 19:00.