• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Socket connections and Browser

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Today's lesson is that you can't wear a jetpack AND a cape. I should have read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic