Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UDP on single machine 1

Status
Not open for further replies.

Frink

Programmer
Mar 16, 2001
798
GB
Hallo,

I am wanting to use UDP to talk between two executables running on the same computer. I have since been told that UDP can only be used to communicate between two computers, and can't run on a single machine. Is this true?

Any help would be much appreciated

- Frink
 
Well, you could set up a loopback device to do this. I don't know how to do it on windows, but it is easy on unix. Maybe someone will see this and do it.

Why not use some kind of piping or IPC stuff?

Disclaimer:
Beware: Studies have shown that research causes cancer in lab rats.
 
> I have since been told that UDP can only be used to communicate
> between two computers, and can't run on a single machine. Is this true?

Absolutly NOT true.

Good luck
-pete
 
You can talk to different apps running on one PC using UDP or TCP. No loop back needed. The stack will take care of this. You just can't use the same port in each app.

Brother C
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top