There are many ways to do this. Depends on what software in running on the server and on the client. Perhaps you could explain about that. On the server what services such as JSP or CGI to handle the verification. On the client, would there be a browser to read an HTML page and send <Form data to the server?
Or do you intend to write the both sides from scratch?
You'll first need to decide on what network protocol you're going to use to talk between your computer and the server. If you'd use FTP for example, you'd need to set up an FTP service on the server. You could use for example the Apache Jakarta Commons Net library to communicate with the server via FTP.
Exception in AccessRemotFile: java.net.ConnectException: Connection refused: connect java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.NetworkClient.openServer(Unknown Source) at sun.net.ftp.FtpClient.openServer(Unknown Source) at sun.net.ftp.FtpClient.openServer(Unknown Source) at sun.net.www.protocol.ftp.FtpURLConnection.connect(Unknown Source) at sun.net.www.protocol.ftp.FtpURLConnection.getOutputStream(Unknown Source) at remoteFileTest.AccessRemotFile.main(AccessRemotFile.java:42)
Joined: Aug 11, 2007
Without using that programm, Are you able to connect to SystemIP with ID "userID" and password "password" from your post ?
It seem you don't have enough rigths to connect to that server.
Joined: Aug 10, 2005
You've nicely hidden the URL you're using and then didn't copy the println() of it with your error message.
It'd make it easier to help you if you'd show all the details of what is happening.
Also it would help if you would put an eye catching comment on line 42 where the error is.
As Collins asks: Are you able to manually connect to that server from you computer? Ie bring up a telnet like screen and enter the command and see what happens. [ June 27, 2008: Message edited by: Norm Radder ]