Solved

Connecting to another computer

Posted on 1998-12-07
8
161 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

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 (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

615 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