Skip to main content

Find your IP address (both internal(local) and external) or check your connection status.

Project description

Find My IP

This module helps you to find out your both internal(local) and external IP also you can figure out your internet connection status. Import FindMyIP in your script and use it easily.

Installing

Download this module directly on github or install it with pip installation.

pip install FindMyIP

How to use

import FindMyIP as ip
  • Internet connection status:

    >>> ip.internet()
    
    True    # If the internet is connected.
    False   # If the internet is disconnected.
    
  • Local IP:

    >>> local_ip = ip.internal()
    >>> print(local_ip)
    
    192.168.1.102
    
  • External IP:

    >>> real_ip = ip.external()
    >>> print(real_ip)
    
    82.212.251.142
    

    Change Log:

  • v 1.1.0:

    • Released

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FindMyIP-1.1.1.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

FindMyIP-1.1.1-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page