This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

How can we connect to other remote system to access file from our system ?

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can we connect to other remote system to access file  from  our system ??
 
Rancher
Posts: 3656
34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are the two systems connected?  Given that information, then look at what facilities are available via that type of connection.
 
srikanth nedamanuri
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They connected Locally . eg: system A(Ubuntu), System B(windows) ,there is a file in System B  we need to access file from  system B to System A in java can you provide us code?
 
Norm Radder
Rancher
Posts: 3656
34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

They connected Locally


Sorry, I'm not familiar with "Locally"?  What is the technology that is being used for connecting the systems?
 
srikanth nedamanuri
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we had two systems A(Windows)  and B(Ubuntu)  connected in network .if A is having a text file containing some text,if we want to access that text file from B System we need a java code.
 
Norm Radder
Rancher
Posts: 3656
34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

connected in network


Does that mean each system has an IP address that can be used to connect to?  If one system has a server the other system could use the IP address to connect to the server and ask the server to return a file.
There are several protocols for that.  Two I know of are FTP and HTTP. If the server uses one of those protocols, other systems connected to the network can connect to the server and get files.
 
Saloon Keeper
Posts: 6211
157
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
 
Sheriff
Posts: 15042
251
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

srikanth nedamanuri wrote:If we had two systems A(Windows)  and B(Ubuntu)  connected in network .if A is having a text file containing some text,if we want to access that text file from B System we need a java code.


The Ranch is Not a code mill. We're here to help, not do your work for you.
 
Sheriff
Posts: 21866
105
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Norm Radder wrote:

connected in network


Does that mean each system has an IP address that can be used to connect to?  If one system has a server the other system could use the IP address to connect to the server and ask the server to return a file.
There are several protocols for that.  Two I know of are FTP and HTTP. If the server uses one of those protocols, other systems connected to the network can connect to the server and get files.


There's also Windows File Sharing / SMB (Samba), and SSH also supports file copying (SFTP, not to be confused with FTPS).
 
Weeds: because mother nature refuses to be your personal bitch. But this tiny ad is willing:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!