Solved

Connecting to another computer

Posted on 1998-12-07
8
156 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
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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Generic progress indicator 6 117
sum13 challenge 24 107
has77  challenge 9 85
Change to event 1 112
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

810 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