I am trying to open a network connection (for streaming) to the applet's originiating host, but its failing. Why?

Govind Seshadri

There are a bunch of restrictions you have to contend with when opening a network connection from an applet. Firstly, ensure that the name of the host you are trying to connect to matches exactly with the name of the host that served the applet.

For example, if you accessed the applet via the URL

	http://foo.bar.com/applet.html
then your applet will be able to connect only with foo.bar.com. You cannot connect with abc.bar.com or bar.com. Also, another important point - you cannot use the IP address for foo.bar.com either! It has to be the fully-qualified host name always.
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact