This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Applet client VB server - connection exception  RSS feed

 
Sohail Saleem
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've made an applet using java.net.Socket to receive and send data. OutputStream().PrintWriter().println(String) is being used to write data on the socket opened at the port 8022. InputStream().InputStreamReader().BufferedReader().readLine() is being used to read data.
Now in Visual Basic server I'm using winsock control. protocal is tcp, remotehost is localhost, remoteport is 0, localport is 8022.
when I send data from applet it throws exception as follows
java.net.ConnectException: Connection refused: connect
can anybody help me out?
and what else security considerations I should look into if this is to be deployed over the internet?
thanks in advance.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!