Due to the improvement of connections capabilities of end-devices there is an increasing interest to design and implement full featured P2P networks that integrate end-devices. In this paper, we use JXTA-Overlay for the secure control of the robot. We considered the robot as end-device. We investigate the time of secure robot control when in the network were connected different number of peers and compared the results with the scenarios where no security exists at all. The experimental results indicate that in the proposed system security has a cost at the application efficiency by adding some overhead in the time of robot control, but JXTA-Overlay can be used successfully to control robots in real time.