Two Laptop Bag*
The moose likes Sockets and Internet Protocols and the fly likes Socket connections and Browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Socket connections and Browser" Watch "Socket connections and Browser" New topic
Author

Socket connections and Browser

Harry Singh
Ranch Hand

Joined: May 02, 2001
Posts: 124
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

Joined: May 15, 2001
Posts: 5
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

Joined: May 16, 2001
Posts: 103
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

Joined: May 15, 2001
Posts: 5
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

Joined: May 25, 2001
Posts: 388
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

Joined: Jun 08, 2001
Posts: 4
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

 
GeeCON Prague 2014
 
subject: Socket connections and Browser