Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how an Applet can make a socket on local port

 
maateen
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to establish a socket on client side through applet so i can write on this socket
i also have a server program running on remote machine...
but Browser is not letting this applet to make a socket at local port in client machine
thanx in advance..
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a sand box permission that prevents any connection to any machine that the applet did not originate on. It espesially prevents writing to the client machine, this protects the user from viruses. If you check the code barn, there is an applet thata connects back to the same server it originated on and reads in a file.
maateen, I know this is the 4th time you've been told. We have a NAMING POLICY Please follow it.
[This message has been edited by Carl Trusiak (edited January 08, 2001).]
[This message has been edited by Carl Trusiak (edited January 08, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic