Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Socket connections and Browser

 
Harry Singh
Ranch Hand
Posts: 124
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anyone tell me why we cant use socket connections in browser? is there any way we can use sockets in browsers? i have made one application of chat which works well as an application. can i use that application using browser ofcoourse with necesary changes?
Thx
HArry
 
tony casey
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Harry
The browser will let you make socket connections, but only to the box the applet was served from. If you need to open up a socket on another box, you will have to write a server side application that your applet can connect to.
Tony.
 
Ali Hassaan
Ranch Hand
Posts: 103
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can u pls explain wat do u mean by box here.
its Urgent
Originally posted by tony casey:
Harry
The browser will let you make socket connections, but only to the box the applet was served from. If you need to open up a socket on another box, you will have to write a server side application that your applet can connect to.
Tony.

 
tony casey
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I meant a computer, or more specifically an IP address. The box the applet is served from will probably be a UNIX machine where your web server is running. It is only to this IP address that an applet can connect to via a socket. Connections to other IP addresses can be made, but only via a server side application.
 
karl koch
Ranch Hand
Posts: 388
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tony,
can i connect to a other box (:-)) if i grant more rights to the applet.
eg. i download applet from A, and connect then to B.
karl
 
Srikanth Remani
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You can do anything you think, but unfortunately the browser is not written by you, so it will stop playing foul for the sake of security.
cheers start hacking a browser
try lynx its cool(lynx is a text based browser)
btw Applets are stored into your RAM not on ur disk when they run. You may download the class files and then run but unfortunately you have to make 'B' machine your server inorder to connect to 'B'...
cheers
Srikanth
Originally posted by karl koch:
tony,
can i connect to a other box (:-)) if i grant more rights to the applet.
eg. i download applet from A, and connect then to B.
karl

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic