Package install :: Package MoSTBioDat :: Package Log :: Module MoSTBioDatLog :: Class getLocalIP
[hide private]
[frames] | no frames]

Class getLocalIP

source code

object --+
         |
        getLocalIP

get local IP address INPUT: servername - str - servername, default 192.168.1.2 port - int - server port, default 22

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
setup(self) source code
 
getIP_1(self, eth0='eth0', eth1='eth1', eth2='eth2')
get IP based on ethernet card specification
source code
 
getIP(self)
get IP based on ethernet card specification with netifaces package
source code
 
getNetBaseIP(self)
get IP based on net connection
source code
 
getEthBaseIP(self, ifname)
get IP based on socket module
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)