Archived Forum Post

Index of archived forum posts

Question:

Winsock between two processes on same machine (ip)

Aug 18 '17 at 07:42

Hello, We just built a proof of concept app that interfaces our PowerBuilder client application using your ActiveX Socket to another PB winsock application. We connect / send and receiveBytes and close. This works just great, when the applications are on different machines with different ip addresses. But when both processes are on the same machine, the communication hangs. Is it possible to use Sockets to communicate between two applications on the same machine with the same ip address.

Thanks


Answer

It should be possible. Did you use "localhost" or "127.0.0.1"? Use "localhost" rather than "127.0.0.1".