Connecting to a java applet from another machine doesnt work
Posted by: Conqueran (---.ipt.aol.com)
Date: October 20, 2006 07:22PM

Hello, I'm setting up a local server using Apache to test my website.. When connecting to the localhost from my own machine the website runs fine and the java applet works.. However if I try to contact my website using my IP, the website loads but the java applet doesnt load.. What do I need to know to fix this problem?
I know its not finding the .class file, and I really have no idea why... Do I need to set directories somewhere?

Options: ReplyQuote
Re: Connecting to a java applet from another machine doesnt work
Posted by: Conqueran (---.ipt.aol.com)
Date: October 20, 2006 07:33PM

I'm sorry I think I found the problem

<applet code="Chat.class"

height="240"
width="480">
<param name=host value="localhost">
<param name=port value="5000">
<param name=username value="Brian">

</applet>

"<param name=host value="localhost">"
seems incorrect.. However I have another question.. I want to get the clients IP so I can connect him to the server.. What should "host value" equal to?

Options: ReplyQuote
Re: Connecting to a java applet from another machine doesnt work
Posted by: CyberSpatium (71.237.217.---)
Date: October 20, 2006 08:10PM

I am not a fan of java myself, but if you want to allow others to access your webserver, put it in online mode. then use your ip address instead of localhost to access your server. try changing:

value="localhost">

to

value="your.ip.address.here">

Options: ReplyQuote


Sorry, only registered users may post in this forum.