FritzBox TR064 WAN IP

Hallo everybody,

my Fritzbox Binding works fine (MAC, Callmonitor, Name, etc.). But my WANIP don’t show:

FritzBox returned unexpected response. Could not find expected datavalue NewExternalIPAddress in response.

But when I manually send this SOAP it was ok:

POST /igdupnp/control/WANIPConn1 HTTP/1.1
SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#GetExternalIPAddress
Authorization: ***** Hidden credentials *****
Content-type: text/xml; charset="utf-8"
Host: fritz.box:49443
Connection: close
User-Agent: XXXXX
Content-Length: 280

<?xml version='1.0' encoding='utf-8'?> <s:Envelope s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'> <s:Body> <u:GetExternalIPAddress xmlns:u='urn:schemas-upnp-org:service:WANIPConnection:1' /> </s:Body> </s:Envelope>

Response:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  <s:Body>
    <u:GetExternalIPAddressResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
      <NewExternalIPAddress>xx.xxx.xxx.xx</NewExternalIPAddress>
    </u:GetExternalIPAddressResponse>
  </s:Body>
</s:Envelope>

Is this a bug of the binding?

Thanks,
Nils

Same here. I had a look at the AVM documentation, nothing changed.

Same here…

When I use the example code from FritzBox TR064 Binding

        Text   item=fboxWanIP
String  fboxWanIP		"FBox WAN IP [%s]"	{fritzboxtr064="wanip"}

I get this error:

2017-02-25 00:02:22.580 [ERROR] [o.o.b.f.i.FritzboxTr064Binding] - FritzBox returned unexpected response. Could not find expected datavalue NewExternalIPAddress in response <?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:dslforum-org:control-1-0">
<errorCode>402</errorCode>
<errorDescription>Invalid Args</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>

Any ideas?

Same here. I think its related to the recent Fritz:OS update I did. Before everything was working smoothly but after updating the firmware the problems started. Might be a change in the UPnP reply the box sends which tr064 binding is not aware of. I filed github issue but no response yet. I deactivated the item to not have my log spammed.

1 Like

Same here!
What a pity…

same here, too. are there any news about it? or is there someone, who has no troubles with the binding actually?

Still working for me. Same box as you and latest firmware.

thank you for your reply. i think i gave up too early! i tried it again and startet to write the items-file completely new and now it works again. i think i had an mistake in the “maconline” items…

Hi!

I got the same problem and can´t find any solution.

Item:

String fbWAN "IP-Adresse: [%s]" <fritzbox> {fritzboxtr064="wanip"}

Sitemap:

Text item=fbWAN

Error:

2017-06-05 15:11:52.161 [ERROR] [o.o.b.f.i.FritzboxTr064Binding] - FritzBox returned unexpected response. Could not find expected datavalue NewExternalIPAddress in response <?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:dslforum-org:control-1-0">
<errorCode>401</errorCode>
<errorDescription>Invalid Action</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>

Cheers

Does no one want to fix this binding?

There´s a fix for everyone who can´t obtain their external IP address when not using the internal DSL modem.

The FritzBox has two values for the external IP address.
WANPPPConnection = internal modem
WANIPConnection = external modem

The fixed binding has two values for the WAN-IP
wanip = WANPPPConnection
externalWanip = WANIPConnection

For me this fix works fine and i´m finally able to read my external IP address.

Cheers
Michael

Argh, same here, another one with typo in the maconline statement in the items file. Pasted the MAC address with colons but it requires dashes.

That works for me.