Hello I'm getting a strange runtime error. Everything is compiling fine, and I'm using a an IP address behind a router (I'm guessing this is the problem) 192.168.1.102, however when I first ran it, my firewall asked me if I wanted to grant this program access on both computers, to which I replied with yes of course. Anyways, I'm guessing this is a hard ware problem and not a code problem, anyway, here is the error message.
java.netConnectException: Connetion timed out: connect at java.net.PlainSocketImp1.socketConnetion(Native Method) at java.net.PlainSocketImp1.doConnect(Unknown Source) at java.net.PlainSocketImp1.connectToAddress(Unkown Source) at java.net.PlainSocketImp1.connect(Unknown Source) at java.net.SocksSocketImp1.connect(Unknown Source) at java.net.SocketImp1.connect(Unknown Soure) at java.net.SocketImp1.connect(Unknown Soure) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at DailyAdvieClient.go(DailyAdviceClient.java:10) at DailyAdvieClient.main(DailyAdvieClient.java:31)
int random = (int) (Math.random() * adviceList.length); return adviceList[random];
} // end of method
} // end of class
If anyone has any idea let me know? Any help will be greatly apprciated. Maybe it's something about running it behind a router or something, but I don't know.
[ June 07, 2005: Message edited by: Nicholas Carrier ] [ June 07, 2005: Message edited by: Nicholas Carrier ]
Teaching yourself anything is always the cheapest way, but it definitely takes a lot of time and effort.<br /> <br />Thank you javaranch <a href="http://"http://faq.javaranch.com/view?HowToAskQuestionsOnJavaRanch"" target="_blank" rel="nofollow">Learn How to Ask Your Question</a> and be nice