Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling Stephanie!!!help.

 
asheet anand
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.
i have a problem,i have made a chat server application.
now it works fine when i open the applet in appletviewer
but when i opened it in browser it throws an security exception.
"cannot connect to localhost".do you have any solution to
this problem.
thanks
asheet
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Asheet,
When you specifically ask for one person to answer your question, you are effectively telling the other 20,000 or so people who might know the answer not to bother. Not a good way to get your question answered.
What browser are you using?
 
asheet anand
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
browser -- ie5.0
 
Nitin Shivaram
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Try giving the name or the ip address of the m/c instead of localhost.

------------------
Nitin S
 
Stephanie Grasson
Ranch Hand
Posts: 347
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Asheet,
It is a little difficult to diagnose your problem without looking at your code. I am wondering, are you actually trying to connect to a remote server, or are your server application and client applet both running on the same physical machine?
I am not surprised that the applet worked in AppletViewer but not in the browser. The AppletViewer is much more lenient. For more information about this, see here:
http://java.sun.com/docs/books/tutorial/applet/practical/security.html
In particular, check out the section labeled

An applet cannot make network connections except to the host that it came from.

In Sun's Java Developer Connection, I found a similar problem that turned out to need the HTML Converter. See here: http://forum.java.sun.com/read/16799473/qA-kb2bbyZycAAYpb#LR
Hopefully these references will solve your problem, but if you still need help please let us know.
Stephanie
 
asheet anand
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Stephanie
i really find the links you mentioned useful.
but i have no idea about HTML Converter.
please tell me how to use it,if i have to
download that then from where i can do that
and how i will use it in my program.
thanks in advance
asheet
 
Stephanie Grasson
Ranch Hand
Posts: 347
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Asheet!
Here is a link to Sun's HTML Converter: http://java.sun.com/products/plugin/1.2/features.html

Allows web page authors to explicitly target the browsers and platforms used in their environment when modifying their pages using the Java Plug-in software HTML Converter.

I suspect this will only solve your problem if you are using the plug-in. If this is not the case, let us know and we'll try to find another solution.
Stephanie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic