# Xml rpc error connection

**URL:** <https://forum.universal-robots.com/t/xml-rpc-error-connection/34712>\
**Category:** Robot Communication\
**Created:** [June 12, 2024, 8:02am UTC](https://forum.universal-robots.com/t/xml-rpc-error-connection/34712 "2024-06-12T08:02:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolas.orefice.ext](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@nicolas.orefice.ext](https://forum.universal-robots.com/u/nicolas.orefice.ext)\
**Post date:** [June 12, 2024, 8:02am UTC](https://forum.universal-robots.com/t/xml-rpc-error-connection/34712/1 "2024-06-12T08:02:16Z")

</div>

Hi

When i tried to launch an ur script who used xml rpc, i have XMLRPC Failed with exception: unable to transport xml to server and get xml response back. Libcurl failed to execute the http post transaction, explaining failed to connect to 127.0.0.1 port 8080: connection refused.

The ur script is:

var\_1 = rpc\_factory(“xmlrpc”, “[http://127.0.0.1:8080/RPC2](http://127.0.0.1:8080/RPC2)”)

and my python script is

import xmlrpc  
from xmlrpc.server import SimpleXMLRPCServer  
import urllib

def get\_data():  
return 1

server = SimpleXMLRPCServer((“127.0.0.1”,8080), allow\_none=True)  
server.register\_function(get\_data, “get\_data”)  
server.serve\_forever()

Could anyone help me ?

---

<div class="post-metadata">

**Author:** ![nrivas1](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@nrivas1](https://forum.universal-robots.com/u/nrivas1)\
**Post date:** [June 12, 2024, 12:08pm UTC](https://forum.universal-robots.com/t/xml-rpc-error-connection/34712/2 "2024-06-12T12:08:06Z")

</div>

You may just need to look at using a different port. Based on this [article](https://www.universal-robots.com/articles/ur/interface-communication/overview-of-client-interfaces/) port 8080 may be connected to other URCaps since they defaulted to that port.
