Make connection with other program

denkleine

Member
Joined
Jun 9, 2008
Messages
5
Programming Experience
1-3
I'm looking for a way to "speak" to an other program using VB code.
First of all this program doesn't run on the same pc, but on annother location.
And second its a sort of command window the program I want to "speak" to.

I got some experiance with VB but I never learned how to contact other programs, or how to speak over the network.

So annyone has an idea how to do this, or maybe a tutorial where I can learn this on myself?

Thx allot already.
 
The application I want to speak to already excist.
I know the things I have to send to it. But don't know for 100% how to make connection or how to send them.

I have been searching tho, and found out that its probably using TCP
 
You can't just talk to any old app on any old machine. You will need to install an application of your own on that machine so you can communicate with it via TCP. That application can then use the Windows API to manipulate the existing app you want to control.
 
I know you can't just talk to an application :).
But I know you can talk towards this application cause it kind of already runs as a "server". It has a client but its completly text based like DOS.

I know on what port it works and so on. I also now know it doesn't work on UDP but sertainly works on TCP.
All I'm just trying to do is write something myself. So I can do a couple of things on it with just a push of a button instead of typing the codes in the client that excists for it.

Its also only for personal use, nothing more.

All i kind of need to find is a clear TCP/IP socket tutorial or an clear explonation of how it works.
 
I know you can't just talk to an application :).
But I know you can talk towards this application cause it kind of already runs as a "server". It has a client but its completly text based like DOS.

I know on what port it works and so on. I also now know it doesn't work on UDP but sertainly works on TCP.
All I'm just trying to do is write something myself. So I can do a couple of things on it with just a push of a button instead of typing the codes in the client that excists for it.

Its also only for personal use, nothing more.

All i kind of need to find is a clear TCP/IP socket tutorial or an clear explonation of how it works.
Why are we only hearing about this in post #5? If you don't give us a clear and complete description of the problem then how can we give you a clear and complete solution?

If this server accepts TCP connections you need to create a TcpClient object, with which you can connect and then send and receive data. You should read the MSDN documentation for the class first of all, then search MSDN and the Web for any walk-throughs or how-tos on the class. If you then can't get a solution working then post back what you have and we'll see if we can fix it.
 
Well when I posted my first post, I didn't know yet. It was one of the ways to try to get some more information.
I have been searching, asking other ppl I know and asking teachers. And so I came to the answer of the tcp.

Thx for the extra info you gave me, i'll think I found it. Also been trying to use the 101vb codes but it was hard to find the rigth thing in there when you don't know what you looking for. Now I do, and I found it.

Thx
 
Back
Top