[Tutor] Re: Network

Daniel Yoo dyoo@hkn.eecs.berkeley.edu
Sun, 1 Oct 2000 19:46:18 -0700 (PDT)


On Mon, 2 Oct 2000, Jerry wrote:

>    long time no see...how are you?

Doing ok; going crazy over homework right now... *grin*


>    now I have a question..the question is 
>    "now I want to know the appearance of my lan 
>     example I want to know the IP address , 
>     physicol address,hostname...How to use python to
>     write...thank you"..

You can use the functions in the socket module, I think:

    http://python.org/doc/current/lib/module-socket.html

However, I haven't done too much network programming, so I'm forwarding
this to the other tutors --- they should have more experience with this.