Quote:
Originally Posted by pconwell
Kranu,
I made some slight modifications to your script. Nothing major, just makes it a little easier to see how to get the kindle to connect.
Code:
os.system("/sbin/ifconfig | grep inet | grep -v inet6 | grep -v 127 | awk '{ sub(/inet addr:/, \"\"); print }' | awk '{ sub(/Bcast:.............../, \"\"); print }' | awk '{ sub(/M................./, \"\"); print }' | awk '{print $1,\":8000\"}' |awk '{ sub(/ /, \"\"); print }'")
... and here is the pastebin: http://pastebin.com/2zTgPLFA
|
Interesting. Unfortunately, this doesn't work on Windows (for obvious reasons). I have a pretty good idea for how to do it, so I'll work on it, and post a cross-compatible solution.
Update: I found a solution. I updated the program.