Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Externe Router-IP per upnp
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2546
Location: Konradsreuth (Germany)

PostPosted: Wed Feb 18, 2009 12:35 pm    Post subject: Externe Router-IP per upnp Reply with quote

Hi :-)

Ich benutze folgendes Script,um die externe IP-Adresse meiner Fritz-Box rauszufinden: http://nasauber.de/opensource/scripts/#get_fritz_ip

Das selbe würd ich jetzt gern auch mit einem anderen Router machen, der ebenfalls upnp kann (D-Link DI-524). Ich hab nur leider keine Ahnung, ob das überhaupt geht, oder wie man das anstellen könnte. Gibt's sowas wie einen upnp-Browser, wo man schauen kann, an welche Daten man rankommt?

upnpscan sagt folgendes über den Router:
Code:
HTTP/1.1 200 OK
ST:upnp:rootdevice
USN:uuid:00195BE1-A144-0000-0000-0000C0A8B201::upnp:rootdevice
Location:http://192.168.178.1:80/desc.xml
Cache-Control:max-age=1800
Server:IGD-HTTP/1.1 UPnP/1.0 UPnP-Device-Host/1.0
Ext:
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2546
Location: Konradsreuth (Germany)

PostPosted: Thu Feb 19, 2009 2:05 pm    Post subject: Reply with quote

Also so geht's mit wget ... aber das is ja mal ne ziemlich lahme Lösung gegenüber der upnp-Sache ...
Code:
wget -O - --user=admin --password=<PASS> <ROUTER-IP>/status.htm 2>/dev/null | awk -F '[> ]' '/ &nbsp;<\/TD>/ {print $2}'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum