MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / GetExternalIPAddress

Method GetExternalIPAddress

src/upnp.py:141–145  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

139 return resp
140
141 def GetExternalIPAddress(self):
142 from xml.dom.minidom import parseString
143 resp = self.soapRequest(self.upnp_schema + ':1', 'GetExternalIPAddress')
144 dom = parseString(resp)
145 return dom.getElementsByTagName('NewExternalIPAddress')[0].childNodes[0].data
146
147 def soapRequest(self, service, action, arguments=None):
148 from xml.dom.minidom import parseString

Callers

nothing calls this directly

Calls 1

soapRequestMethod · 0.95

Tested by

no test coverage detected