Posts: 363
Joined: Jun 2004
Reputation:
0
do anyone have a smart way to get the name of the computer by ip?
socket.gethostbyaddr('10.0.0.2')
will work at my pc but not at the xbox
Posts: 928
Joined: Feb 2004
Reputation:
0
Asteron
"Skilled" Python Coder
Posts: 928
i dont think any python script can handle smb yet. you would need that lib though.
Posts: 363
Joined: Jun 2004
Reputation:
0
thanks.
i have played around with the lib, it really works great on xbox!
the only dumb thing is that i can't resolve the computername by only knowing the ipadressa.
socket.gethostbyaddr('10.0.0.2')
will just give the ('10.0.0.2','','10.0.0.2')
on pc it would give ('nydata','','10.0.0.2')
Posts: 363
Joined: Jun 2004
Reputation:
0
hi madtw. i got it working.
but the ipadress and machinename is still requiered in my tests. i will check out your project to see if you have some tricks i don't know of. anyway one thing i found out using this lib is that it does never return over 30 files and folders!
would be realy nice to have a getdirectory object in the phyonmodule.like the httapi have now. there you can getdirectory of anything xbmc supports.