<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
That looks good but unfortunately i get an error message which says
"Example instance has no attribute 'transport'"<br>
<blockquote cite="mid40AC23FE.5000302@nextwindow.com" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
  <pre>Daniel Newton wrote:
&gt;<i> 
</i>&gt;<i> I have a simple XML-PRC server similar to the example below:
</i>&gt;<i> 
</i>&gt;<i> from twisted.web import xmlrpc, server
</i>&gt;<i> 
</i>&gt;<i> class Example(xmlrpc.XMLRPC):
</i>&gt;<i>     """An example object to be published."""
</i>&gt;<i> 
</i>&gt;<i>     def xmlrpc_add(self, a, b):
</i>&gt;<i>         """Return sum of arguments."""
</i>&gt;<i>         return a + b
</i>
       def xmlrpc_whatIsMyAddress(self):
           return self.transport.getPeer().host

<a class="moz-txt-link-abbreviated"
 href="mailto:twisted-python-request@twistedmatrix.com">twisted-python-request@twistedmatrix.com</a> wrote:

&gt;<i> 
</i>&gt;<i> if __name__ == '__main__':
</i>&gt;<i>     from twisted.internet import reactor
</i>&gt;<i>     r = Example()
</i>&gt;<i>     reactor.listenTCP(7080, server.Site(r))
</i>&gt;<i>     reactor.run()
</i>&gt;<i> 
</i>&gt;<i> I want to be able to get the address of the client that calls the xmlrpc 
</i>&gt;<i> method can anyone help me with this?
</i>&gt;<i> 
</i>&gt;<i> thanks in advance
</i>&gt;<i> 
</i>&gt;<i> Daniel Newton
</i>&gt;<i> 
</i>
   Jp</pre>
</blockquote>
</body>
</html>