from wlan import do_connect import netconf ip = do_connect(netconf.ssid, netconf.password) print(ip) # netconf ('192.168.2.140', '255.255.255.0', '192.168.2.254', '1.1.1.1') from maxserver import main main(ip)