Which command line command can be used to find the IP address of your computer?

I'd like to write a script, and for example I'm going to use ipconfig as my command.

Now when you normally run this command theres a ton of output.

What I'd like to have is a script that would show only the IP address, for example.

echo Network Connection Test
ipconfig <---This would run in the background
echo Your IP Address is: (INSERT IP ADDRESS HERE)

The output would be

Network Connection Test

Your IP Address is: 192.168.1.1

Is this even possible?

Which command line command can be used to find the IP address of your computer?
Feb 8 in Cyber Security & Ethical Hacking by
• 11,230 points
9,743 views

1 answer to this question.

1. Open the Command Prompt.  

a. Click the Start icon, type command prompt into the search bar and press click the Command Prompt icon.

Type ipconfig/all and press Enter.

3. The IP Address will display along with other LAN details.

Which command line command can be used to find the IP address of your computer?
answered Feb 9 by Edureka
• 12,690 points

  • All categories
  • Which command line command can be used to find the IP address of your computer?
    Apache Kafka (84)
  • Which command line command can be used to find the IP address of your computer?
    Apache Spark (596)
  • Which command line command can be used to find the IP address of your computer?
    Azure (131)
  • Which command line command can be used to find the IP address of your computer?
    Big Data Hadoop (1,907)
  • Which command line command can be used to find the IP address of your computer?
    Blockchain (1,673)
  • Which command line command can be used to find the IP address of your computer?
    C# (141)
  • Which command line command can be used to find the IP address of your computer?
    C++ (271)
  • Which command line command can be used to find the IP address of your computer?
    Career Counselling (1,060)
  • Which command line command can be used to find the IP address of your computer?
    Cloud Computing (3,421)
  • Which command line command can be used to find the IP address of your computer?
    Cyber Security & Ethical Hacking (147)
  • Which command line command can be used to find the IP address of your computer?
    Data Analytics (1,266)
  • Which command line command can be used to find the IP address of your computer?
    Database (855)
  • Which command line command can be used to find the IP address of your computer?
    Data Science (75)
  • Which command line command can be used to find the IP address of your computer?
    DevOps & Agile (3,545)
  • Which command line command can be used to find the IP address of your computer?
    Digital Marketing (111)
  • Which command line command can be used to find the IP address of your computer?
    Events & Trending Topics (28)
  • Which command line command can be used to find the IP address of your computer?
    IoT (Internet of Things) (387)
  • Which command line command can be used to find the IP address of your computer?
    Java (1,247)
  • Which command line command can be used to find the IP address of your computer?
    Kotlin (8)
  • Which command line command can be used to find the IP address of your computer?
    Linux Administration (389)
  • Which command line command can be used to find the IP address of your computer?
    Machine Learning (337)
  • Which command line command can be used to find the IP address of your computer?
    MicroStrategy (6)
  • Which command line command can be used to find the IP address of your computer?
    PMP (423)
  • Which command line command can be used to find the IP address of your computer?
    Power BI (516)
  • Which command line command can be used to find the IP address of your computer?
    Python (3,178)
  • Which command line command can be used to find the IP address of your computer?
    RPA (650)
  • Which command line command can be used to find the IP address of your computer?
    SalesForce (92)
  • Which command line command can be used to find the IP address of your computer?
    Selenium (1,569)
  • Which command line command can be used to find the IP address of your computer?
    Software Testing (56)
  • Which command line command can be used to find the IP address of your computer?
    Tableau (608)
  • Which command line command can be used to find the IP address of your computer?
    Talend (73)
  • Which command line command can be used to find the IP address of your computer?
    TypeSript (124)
  • Which command line command can be used to find the IP address of your computer?
    Web Development (3,002)
  • Which command line command can be used to find the IP address of your computer?
    Ask us Anything! (66)
  • Which command line command can be used to find the IP address of your computer?
    Others (1,585)
  • Which command line command can be used to find the IP address of your computer?
    Mobile Development (263)

Subscribe to our Newsletter, and get personalized recommendations.

Already have an account? Sign in.