The Artima Developer Community
Sponsored Link

Java Answers Forum
Applets and Servers

2 replies on 1 page. Most recent reply: Mar 14, 2003 1:47 AM by Alex S

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Mairead Ryan

Posts: 1
Nickname: mairead
Registered: Mar, 2003

Applets and Servers Posted: Mar 11, 2003 12:22 PM
Reply to this message Reply
Advertisement
Doing project - created a client and server that act as a simple chat but i want the client as an applet. When i change it to a applet it wont connect to the server even if i hardcode in the ip address. Any help would be much appreciated


Jiri Fabian

Posts: 11
Nickname: filemon
Registered: Mar, 2003

Re: Applets and Servers Posted: Mar 13, 2003 1:58 AM
Reply to this message Reply
Ryan, read this:

http://java.sun.com/sfaq/#socket

Regards,

fil

Alex S

Posts: 27
Nickname: andu
Registered: Mar, 2003

Re: Applets and Servers Posted: Mar 14, 2003 1:47 AM
Reply to this message Reply
If you load an applet from server X, the applet can make socket connections ONLY back to server X. You can't connect your applet to other servers like ibm.com or sun.com or anything else. It is a security issue. So, make your chat server resident on machine X and load applet from the same X machine.

If the problem is not like that described above, then enjoy digging ... :) Sockets are quite simple, in fact.

Flat View: This topic has 2 replies on 1 page
Topic: WHICH ONE IS FASTER Previous Topic   Next Topic Topic: Please help me out it will be greatly appreciated

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use