# Can uxp use socket to communicate with external programs?

**URL:** <https://forums.creativeclouddeveloper.com/t/can-uxp-use-socket-to-communicate-with-external-programs/2091>\
**Category:** UXP Plugin API\
**Tags:** uxp\
**Created:** [October 22, 2020, 7:09am UTC](https://forums.creativeclouddeveloper.com/t/can-uxp-use-socket-to-communicate-with-external-programs/2091 "2020-10-22T07:09:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Zob](https://avatars.discourse-cdn.com/v4/letter/z/87869e/32.png) [@Zob](https://forums.creativeclouddeveloper.com/u/Zob)\
**Post date:** [February 25, 2023, 4:11pm UTC](https://forums.creativeclouddeveloper.com/t/can-uxp-use-socket-to-communicate-with-external-programs/2091/5 "2023-02-25T16:11:33Z")

</div>

This description is really helpful, thank you.

I see a number of posts in this forum where people installed [socket.io](http://socket.io) and use the UXP plugin as a client, including for Photoshop plugins. For example, in XD [in this post (can be seen in their dependencies)](http://forums.creativeclouddeveloper.com/t/error-cannot-find-module-fs/3912) and [in Photoshop here](http://forums.creativeclouddeveloper.com/t/socket-io-client-doesnt-work/3355).

socket-io is definitely capable of doing raw TCP. Has the ability to use this module in UXP been explicitly removed? For example, I am trying to use it myself, and even though my npm install succeeds and all my node\_modules files appear to be in their correct places relative to root, every single require() attempt fails, no matter what syntax.

I guess my question is "Can you install any npm package you want to get around the limitations in your bullet list, or do the limitations exist because UXP has an explicit ‘block list’ of modules to prevent you from doing certain things?

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/can-uxp-use-socket-to-communicate-with-external-programs/2091)._
