code: def get_local_urls(port):
      '''get urls of local machine'''
      url_list = []
      for name, info in psutil.net_if_addrs().items():
          for addr in info:
              if AddressFamily.AF_INET == addr.family:
                  url_list.append('http://{}:{}'.format(addr.address, port))
      return url_lisf get_local_urls(port):
      '''get urls of local machine'''
      url_list = []
      for name, info in psutil.net_if_addrs().items():
          for addr in info:
              if AddressFamily.AF_INET == addr.family:
                  url_list.append('http://{}:{}'.format(addr.address, port))
      return url_list
docs: get urls of local machine