tag:blogger.com,1999:blog-7979054.post114889757473812917..comments2023-10-17T01:38:08.086-07:00Comments on Yue Zhang - Techlog: Python note: get your ip addressYue Zhanghttp://www.blogger.com/profile/09843271076983129884noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-7979054.post-1149159083893527832006-06-01T03:51:00.000-07:002006-06-01T03:51:00.000-07:00Excellent tip!~should be an "aha!" sectionimport s...Excellent tip!~<BR/>should be an "aha!" section<BR/><BR/>import socket<BR/><BR/>print socket.gethostname()<BR/>print socket.gethostbyname(socket.gethostname())<BR/>print socket.gethostbyaddr(socket.gethostbyname(socket.gethostname()))<BR/><BR/>it tells the story easier than starting from scratch about binary, ip-addr-formation or somethingXi.Chenghttps://www.blogger.com/profile/02846078208220203605noreply@blogger.com