Solved

Connecting to another computer

Posted on 1998-12-07
8
158 Views
Last Modified: 2013-11-20
are there any functions that would allow me to connect to another computer, if i know the IP address?
0
Comment
Question by:GreatOne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 1

Expert Comment

by:perrizo
ID: 1325845
What in particular are you looking for on the other computer?  Do you want to access files, registry, database files, server program?  Depending upon what you want there are plenty of facilities out there for you.

0
 

Author Comment

by:GreatOne
ID: 1325846
i would need to access files and the registry. and maybe, the server program.
0
 
LVL 6

Expert Comment

by:thresher_shark
ID: 1325847
Wow, would it be possible for you to elaborate on this project?  Also, what is the "server program?"  I am not entirely clear on what you want to do (I am also a little slow...).
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:GreatOne
ID: 1325848
What I want to do is connect to a remote computer, which is not on the same network as i am. The only thing i will have is the IP of the computer. I would need to access the files as well as the registry. Basically, i want to establish a connection and perform basic operations, like editing the registry and file manipulation. does that help?
0
 

Accepted Solution

by:
lsean earned 20 total points
ID: 1325849
One straight forward way is: you need to write two programs: Prog1 and Prog2.
1. Prog1 runs on your computer, Prog2 runs on the remote computer.
2. Prog1 has to be implemented to connect to prog2 and send requests for either executing a command or retrieving data on the remote computer.
3. Prog2 will accept connection from prog1 and perform the actions according to instructions received frmo prog1 (for example, edit a registry entry, or send a whole file to prog1 to be displayed on your computer).
4. You can use the CSocket class in MFC to connect the two programs, but this part alone is not easy if you don't have enough experience.
5. There will many other issues as you begin implementation, but the idea works.
0
 

Author Comment

by:GreatOne
ID: 1325850
does anyone know of a site that has sample code which used Csocket class? it will help me to get started.


0
 

Expert Comment

by:matias103098
ID: 1325851
If you want I can send you a program that i made using the class CSocket.... the program works like ICQ ..... You can send message from clients to clients throw server .... if you want to make another thing you just implement it..
and if you found it usefull you can gave me the points.. :)
0
 

Author Comment

by:GreatOne
ID: 1325852
matias:
i would like to take a look at your code. I looked at the samples provided with VC++ and they were of some help. Maybe looking at your code might help me some more. Email to me at ebromber@drew.edu or BadGuy910@aol.com. At this point, i am able to setup a connection between the two computers, but have not figured out how to implement code to allow file transfer. But like i said, looking at your code might help. And if it does, i will give you the points.


0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
repeateFront java challenge 31 95
Question regarding Copy/Paste 16 98
Complete beginner needs help making a cron job 9 131
Looking for a specific application/software 2 119
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question