From java running on Windows, I need to access a file on a remote Ubuntu machine. I use the following:

URL U = new URL ( "http://" + SERVER_IP + ":" + SERVER_PORT + "/" + ClsName + ".class" );

where:

  1. SERVER_IP is the Ubuntu IP address obtained from any site that shows the IP address of the machine you are using.
  2. SERVER_PORT is the Ubuntu port where the server is listening.

Now:

  1. Do I need to modify this code any further?
  2. Do I need to configure the Windows and/or Ubuntu machine(s) for this to work?

 

Thank you

FacebookTwitterLinkedin
Pin It
Joomla Tutorials for Beginners