# Java socket communication

**URL:** <https://forum.universal-robots.com/t/java-socket-communication/678>\
**Category:** URCap Development\
**Created:** [April 12, 2017, 9:14am UTC](https://forum.universal-robots.com/t/java-socket-communication/678 "2017-04-12T09:14:17Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![jbm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/jbm/32/614_2.png) [@jbm](https://forum.universal-robots.com/u/jbm)\
**Post date:** [February 16, 2018, 9:48am UTC](https://forum.universal-robots.com/t/java-socket-communication/678/7 "2018-02-16T09:48:24Z")

</div>

Did you check out these two samples?

> [@URCap Sample: getRobotData Real Time Client reader URCap](http://forum.universal-robots.com/t/sample-getrobotdata-real-time-client-reader-urcap/1195):
>
> getRobotData Real Time Client reader URCap Description of functionality: This URCap implements a new custom class, getRobotRealtimeData.class, that connects to the Real Time Client interface, and reads the message. The data from the Real Time Client is broken into the information it represents, and implements get-methods to read actual TCP pose, actual joint positions, joint temperatures, joint operation modes and the safety limited speed scaling percentage. You can add your own get-methods a…

> [@URCap Sample: Send Script with button push URCap](http://forum.universal-robots.com/t/sample-send-script-with-button-push-urcap/1203):
>
> sendScriptWithButton URCap Description of functionality: This URCap enables sending a movej() or popup() command to the secondary client interface, by pushing a button in the GUI. It implements the class clientSendScript.java which handles connection, transmission of script, and termination of the necessary socket. According to the URScript manual, two pre-defined functions has been implemented, namely movej() and popup(). For demonstration, this has been put into use in a program node with b…

They both implement TCP Sockets in Java to communicate with in this case the client interfaces.

---

_[View the full topic](https://forum.universal-robots.com/t/java-socket-communication/678)._
