aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes Opening a socket connection on client  m/c Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Opening a socket connection on client  m/c" Watch "Opening a socket connection on client  m/c" New topic
Author

Opening a socket connection on client m/c

sunil kumre
Ranch Hand

Joined: Dec 23, 2000
Posts: 64
Hello,
I'm writing a jsp(which will shortly be uploaded on our server).Now what i'm trying to do is when a client requests this jsp this jsp would hold the logic to open a socket connection to the client(which has made a request)and write or read a file to/from the client.
I want to achieve this without any client side coding/installation.
this is what i tried writing:
Socket client=new Socket(InetAddress.getByName(request.getRemoteAddr()),1500);
But everytime it gives : Connection refused
Can anyone help?Is there another way of doing it?
Thanks in advance.
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
You already posted this to the JSP forum, where I answered the question. Please don't crosspost. People will waste their time giving duplicate answers.
- Peter
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Opening a socket connection on client m/c
 
Similar Threads
Socket data read problem !!
Write on a port
Socket connection best practice
new to Socket prgramming
Opening a socket connection on client machine