import socket
import fcntl
import struct

def get_ip_address(ifname): 
	s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) 
	return '%s' % socket.inet_ntoa(fcntl.ioctl(s.fileno(), 0x8915, struct.pack('256s', ifname[:15]))[20:24])
6a791933a143ab4f9b7a5767eb4a3a0948db1195
<mask token>

<mask token>


def get_ip_address(ifname):
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    return '%s' % socket.inet_ntoa(fcntl.ioctl(s.fileno(), 35093, struct.
        pack('256s', ifname[:15]))[20:24])

import socket
import fcntl
import struct


def get_ip_address(ifname):
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    return '%s' % socket.inet_ntoa(fcntl.ioctl(s.fileno(), 35093, struct.
        pack('256s', ifname[:15]))[20:24])

import socket
import fcntl
import struct

def get_ip_address(ifname): 
	s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) 
	return '%s' % socket.inet_ntoa(fcntl.ioctl(s.fileno(), 0x8915, struct.pack('256s', ifname[:15]))[20:24])