# How to run an ipc app on localhost

**URL:** <https://forum.legato.io/t/how-to-run-an-ipc-app-on-localhost/2964>\
**Category:** Legato Application Framework\
**Created:** [January 16, 2018, 4:24am UTC](https://forum.legato.io/t/how-to-run-an-ipc-app-on-localhost/2964 "2018-01-16T04:24:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![liuzhiwei](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@liuzhiwei](https://forum.legato.io/u/liuzhiwei)\
**Post date:** [January 16, 2018, 4:24am UTC](https://forum.legato.io/t/how-to-run-an-ipc-app-on-localhost/2964/1 "2018-01-16T04:24:21Z")

</div>

Hi evreybody,

I’m trying to install legato on my linux ubuntu, and i’d like to test demo’s apps (helloipc) on localhost before use target, i want test ipc funtion, but i don’t find commands to run it .

Would you please give me some suggestion to solve this problem?

Thank you.

---

<div class="post-metadata">

**Author:** ![muralinagraj](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@muralinagraj](https://forum.legato.io/u/muralinagraj)\
**Post date:** [January 16, 2018, 12:44pm UTC](https://forum.legato.io/t/how-to-run-an-ipc-app-on-localhost/2964/3 "2018-01-16T12:44:18Z")

</div>

Hi,  
Please check if information in the below [legato.io](http://legato.io) links helps you, let me know.

[http://legato.io/legato-docs/latest/toolsHost\_startlegato.html](http://legato.io/legato-docs/latest/toolsHost_startlegato.html)

[http://legato.io/legato-docs/latest/toolsHost\_stoplegato.html](http://legato.io/legato-docs/latest/toolsHost_stoplegato.html)

Regards,  
Muralidhara N.

---

<div class="post-metadata">

**Author:** ![liuzhiwei](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@liuzhiwei](https://forum.legato.io/u/liuzhiwei)\
**Post date:** [January 17, 2018, 1:23am UTC](https://forum.legato.io/t/how-to-run-an-ipc-app-on-localhost/2964/4 "2018-01-17T01:23:37Z")

</div>

Hi  
Thanks for you reply.  
i am already run “startlegato” successfull on my localhost, but i don`t know ,how to run helloipc app. could you give me some suggestion?

Regards,  
liuzhiwei

---

<div class="post-metadata">

**Author:** ![muralinagraj](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@muralinagraj](https://forum.legato.io/u/muralinagraj)\
**Post date:** [January 17, 2018, 5:54am UTC](https://forum.legato.io/t/how-to-run-an-ipc-app-on-localhost/2964/5 "2018-01-17T05:54:43Z")

</div>

Hi,

Here’s an example of how you can try running the sample helloIpc app on localhost:

After running the startlegato Go to apps/sample/helloIpc and build helloIpc for localhost

cd apps/sample/helloIpc  
make localhost

When both the Server and Client apps are successfully built, go to \_build\_printServer/localhost/app/printServer/staging/read-only/bin and run the Server binary.

cd \_build\_printServer/localhost/app/printServer/staging/read-only/bin/  
./server

Then go to \_build\_printClient/localhost/app/printClient/staging/read-only/bin/ and run the Client binary.

cd \_build\_printClient/localhost/app/printClient/staging/read-only/bin/client  
./client

Regards,  
Muralidhara N.
