# Does JYTHON support sockets?

**URL:** <https://forum.inductiveautomation.com/t/does-jython-support-sockets/12810>\
**Category:** Module Development\
**Created:** [March 18, 2017, 2:59pm UTC](https://forum.inductiveautomation.com/t/does-jython-support-sockets/12810 "2017-03-18T14:59:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PRAMANJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pramanj/32/66935_2.png) [@PRAMANJ](https://forum.inductiveautomation.com/u/PRAMANJ)\
**Post date:** [March 18, 2017, 2:59pm UTC](https://forum.inductiveautomation.com/t/does-jython-support-sockets/12810/1 "2017-03-18T14:59:47Z")

</div>

Hi,  
Does JYTHON in Ignition support Socket programming as in JAVA? The [system.net](http://system.net) scripting functions seems to allow GET/POST/PUT calls to a web server but how achieve communication with an application on the same or other host in the network?

One possibility if to use JAVA code from JYTHON to invoke the Socket calls from JAVA libraries, but is there a direct support for TCP/IP sockets in JYTHON (as in JAVA) ?

I think PYTHON supports socket communication but not sure if its only with a web server.

Please throw some light on it.

[pramanj.com](http://www.pramanj.com)  
PRAMANJ

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 18, 2017, 3:16pm UTC](https://forum.inductiveautomation.com/t/does-jython-support-sockets/12810/2 "2017-03-18T15:16:23Z")

</div>

Both approaches are workable, though many newer python libraries for various encryption tasks won’t work with jython 2.5. And you might have to package a Java library in a module if you need specialized functionality on that side.

This isn’t really a new topic here in the forums. Try [this search](https://inductiveautomation.com/forum/search.php?keywords=socket&terms=all&author=&sc=1&sf=all&sk=t&sd=d&sr=posts&sv=0&st=0&ch=300&t=0&submit=Search).

---

<div class="post-metadata">

**Author:** ![PRAMANJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pramanj/32/66935_2.png) [@PRAMANJ](https://forum.inductiveautomation.com/u/PRAMANJ)\
**Post date:** [March 18, 2017, 5:13pm UTC](https://forum.inductiveautomation.com/t/does-jython-support-sockets/12810/3 "2017-03-18T17:13:38Z")

</div>

Thanks Phil,  
However I don't seem to have access to the link that you posted! Can someone give access to that discussion forum?

regards  
PRAMANJ

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 18, 2017, 6:48pm UTC](https://forum.inductiveautomation.com/t/does-jython-support-sockets/12810/4 "2017-03-18T18:48:05Z")

</div>

All it is is a shortcut to putting “socket” in the forum search form, through the link at the top right. Link works for me and requires no special permissions.

---

<div class="post-metadata">

**Author:** ![PRAMANJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pramanj/32/66935_2.png) [@PRAMANJ](https://forum.inductiveautomation.com/u/PRAMANJ)\
**Post date:** [March 21, 2017, 3:32am UTC](https://forum.inductiveautomation.com/t/does-jython-support-sockets/12810/5 "2017-03-21T03:32:46Z")

</div>

I don't see any forum search link or box anywhere on top right of my screen!  
regards

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 21, 2017, 11:50am UTC](https://forum.inductiveautomation.com/t/does-jython-support-sockets/12810/6 "2017-03-21T11:50:36Z")

</div>

[quote=“Pramanj”]I don’t see any forum search link or box anywhere on top right of my screen![/quote]This is what I see on [the forum](https://inductiveautomation.com/forum/index.php):

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/05c456612fdde9171f648744c3f94d24e17980bd.png)  
  
You might need to work with your IT department if they are filtering your web pages.
