Skip to content

IP Checker I made solely in PowerShell for an internship; use a blank CSV for the Output Path; run it in Powershell ISE

License

Notifications You must be signed in to change notification settings

RJohnson2106/PowerShell-IP-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IP Address Lookup Tool (PowerShell GUI)

A user-friendly PowerShell application for performing IP address hostname lookups via a graphical interface. Built by Ryan Johnson.


Features

  • Three operational modes:

    • Single IP Mode: Look up a single IP address manually
    • Text File Mode: Upload a .txt file of IPs and bulk check all entries
    • Manual Bulk Mode: Manually add IPs one-by-one and bulk check them
  • CSV Export Support: Lookup results are saved as a structured CSV file

  • Intuitive GUI: Made with Windows Forms (System.Windows.Forms) for a simple and accessible user interface

  • Input Validation: Built-in regex filter to verify valid IPv4 addresses

  • Safe File Handling: Cleans whitespace in text file mode and gracefully handles invalid input or unresolved hostnames


GUI Overview

Control Function
Check Text File Load a .txt file containing IP addresses to look up
Check Single IP Input one IP address to resolve
Check Bulk Manually Add IPs one-by-one via textbox and export all at once
Browse Buttons Browse and select input/output paths
Run Executes the lookup and writes results to the designated output
Add/Clear (Manual Mode) Add IPs to the list or reset the entry array
Output Box Displays real-time status messages and lookup results

How It Works

  • Uses [System.Net.Dns]::GetHostEntry() to resolve each IP to a hostname
  • Catches and logs resolution errors (including invalid formats)
  • Saves output as a .csv file at the selected path

Built With

  • PowerShell
  • Windows Forms GUI (System.Windows.Forms)
  • .NET assemblies
  • Regex for IP validation

File Output Example

"IPAddress","Hostname"
"8.8.8.8","dns.google"
"1.1.1.1","one.one.one.one"
"256.256.256.256","Invalid IP Format"

About

IP Checker I made solely in PowerShell for an internship; use a blank CSV for the Output Path; run it in Powershell ISE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published