Win a copy of Svelte and Sapper in Action this week in the JavaScript 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Failed to connect to the server in Applet, even..

 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I try to write an on-line game program, in which an applet is loaded in a browser. The applet will try to connect to a server program in the start() method.
The server program is started in advance, it is in the same directory as the applet in the webserver.
Though I have heard that an applet can connect to a socket to where it is from. My programs failed due to the security problem in the browser. I have tested my programs in the local machine, wheil server program and applet are togeter, and I have tried to write a stand alone client program to connect to the server program at the webserver, everything is fine.
Can anyone tell me the problems?
Thanks a lot
Chris
    Bookmark Topic Watch Topic
  • New Topic