# IPC Socket for Windows?

**URL:** <https://forum.xojo.com/t/ipc-socket-for-windows/13079>\
**Category:** Windows\
**Created:** [December 18, 2013, 10:13pm UTC](https://forum.xojo.com/t/ipc-socket-for-windows/13079 "2013-12-18T22:13:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dean\_Davidge](https://forum.xojo.com/user_avatar/forum.xojo.com/dean_davidge/32/244_2.png) [@Dean\_Davidge](https://forum.xojo.com/u/Dean_Davidge)\
**Post date:** [December 18, 2013, 10:13pm UTC](https://forum.xojo.com/t/ipc-socket-for-windows/13079/1 "2013-12-18T22:13:48Z")

</div>

My company makes smart electric meters and I have written programs for monitoring them and doing tenant billing. We recently received an inquiry from a company that sells marina management software wanting to know if we could provide them a meter interface they could talk to with Active-X. Since Xojo can’t do Active-X as a host, I am looking at alternatives. An IPC socket looks like the best way for two programs on the same computer to communicate with each other, but after quick scan on the net, I did not find any Windows support for this method. A TCP socket looks like overkill so I am thinking a UDP socket may be the answer. I would like to hear from someone who has experience with communicating with .NET programs.

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [December 18, 2013, 10:24pm UTC](https://forum.xojo.com/t/ipc-socket-for-windows/13079/2 "2013-12-18T22:24:26Z")

</div>

Windows doesn’t really support IPC SOCKETS so an IPC socket on Windows won’t work between anything but 2 Xojo applications.  
TCP or UDP could work

[edited to clarify that this is IPC SOCKETS - not IPC in general]

---

<div class="post-metadata">

**Author:** ![DerkJ](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/e495f1/32.png) [@DerkJ](https://forum.xojo.com/u/DerkJ)\
**Post date:** [December 18, 2013, 10:35pm UTC](https://forum.xojo.com/t/ipc-socket-for-windows/13079/3 "2013-12-18T22:35:07Z")

</div>

[quote=53833:@Norman Palardy]Windows doesn’t really support IPC so an IPC socket on Windows won’t work between anything but 2 Xojo applications.  
TCP or UDP could work[/quote]

ehmm  
[http://msdn.microsoft.com/en-us/library/windows/desktop/aa365574(v=vs.85).aspx](http://msdn.microsoft.com/en-us/library/windows/desktop/aa365574(v=vs.85).aspx)

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [December 18, 2013, 10:39pm UTC](https://forum.xojo.com/t/ipc-socket-for-windows/13079/4 "2013-12-18T22:39:51Z")

</div>

[quote=53834:@Derk Jochems]ehmm  
[http://msdn.microsoft.com/en-us/library/windows/desktop/aa365574(v=vs.85).aspx[/quote]](http://msdn.microsoft.com/en-us/library/windows/desktop/aa365574(v=vs.85).aspx%5B/quote%5D)  
Since we’re talking about Xojo & IPC Sockets in Xojo - not ipc in general -  
IPC sockets on Windows won’t work between anything but 2 Xojo applications.  
TCP or UDP could work  
The rest of the schemes on Windows are not available using an IPC SOCKET - but you might be able to use declares to get at them

---

<div class="post-metadata">

**Author:** ![Dean\_Davidge](https://forum.xojo.com/user_avatar/forum.xojo.com/dean_davidge/32/244_2.png) [@Dean\_Davidge](https://forum.xojo.com/u/Dean_Davidge)\
**Post date:** [December 19, 2013, 12:07am UTC](https://forum.xojo.com/t/ipc-socket-for-windows/13079/5 "2013-12-19T00:07:57Z")

</div>

Thanks guys. I was afraid that was going to be the answer.

---

<div class="post-metadata">

**Author:** ![Wayne\_Golding](https://forum.xojo.com/user_avatar/forum.xojo.com/wayne_golding/32/165_2.png) [@Wayne\_Golding](https://forum.xojo.com/u/Wayne_Golding)\
**Post date:** [December 19, 2013, 2:38am UTC](https://forum.xojo.com/t/ipc-socket-for-windows/13079/6 "2013-12-19T02:38:47Z")

</div>

Perhaps a named pipe would be the answer? I built a Xojo component to do this - you can get it [here](https://dl.dropboxusercontent.com/u/18858366/NamedPipe.xojo_binary_code).

---

<div class="post-metadata">

**Author:** ![John\_Hansen](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/b4bc9f/32.png) [@John\_Hansen](https://forum.xojo.com/u/John_Hansen)\
**Post date:** [December 19, 2013, 8:58am UTC](https://forum.xojo.com/t/ipc-socket-for-windows/13079/7 "2013-12-19T08:58:36Z")

</div>

You might be able to use Xojo declare.

See attached link when used with Visual basic: [http://www.codeproject.com/Articles/3815/Inter-process-communication-using-registered-messa](http://www.codeproject.com/Articles/3815/Inter-process-communication-using-registered-messa)

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 4:59pm UTC](https://forum.xojo.com/t/ipc-socket-for-windows/13079/8 "2020-10-29T16:59:25Z")

</div>


