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?

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.

answered Feb 9 by Edureka
• 12,690 points

Related Questions In Cyber Security & Ethical Hacking

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

Subscribe to our Newsletter, and get personalized recommendations.

Already have an account? Sign in.

Toplist

Neuester Beitrag

Stichworte