Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Socket connections and Browser

 
Ranch Hand
Posts: 124
  • 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
 
Greenhorn
Posts: 5
  • 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.
 
Ranch Hand
Posts: 103
  • 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
  • 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.
 
Ranch Hand
Posts: 388
  • 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
 
Greenhorn
Posts: 4
  • 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


 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!