how to find ip address in cmd

0 votes

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, 2022 in Cyber Security & Ethical Hacking by Edureka
• 12,720 points
50,023 views

1 answer to this question.

0 votes

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, 2022 by Edureka
• 13,750 points
0 votes
if you are using windows then there is three way to find out ip address.

1.go to network and internet sharing center /settings by right clicking on wifi or ethernet icon then status of particular adapter then change adapter settings click the adapter then right click on it select status then details .

2 run ncpa.cpl repeate process  from 1

3 run cmd then type ipconfig  or ipfonfig/all and hit enter

if you are using linux open terminal and type

ifconfig or ip add to see the details
answered Feb 26, 2023 by subhasish

edited Mar 5, 2025

Related Questions In Cyber Security & Ethical Hacking

+1 vote
1 answer

How to find IP address of nodes in my network?

The IP address of the nodes connected ...READ MORE

answered Feb 9, 2019 in Cyber Security & Ethical Hacking by Omkar
• 69,180 points
5,958 views
0 votes
0 answers

How to find the IP address of the DNS server in Wireshark?

Wireshark is a powerful network analysis tool. ...READ MORE

Mar 10, 2025 in Cyber Security & Ethical Hacking by Anupam
• 18,960 points
440 views
0 votes
1 answer

How to find MAC address using IP address?

To find the MAC address, run this ...READ MORE

answered Feb 9, 2019 in Cyber Security & Ethical Hacking by Omkar
• 69,180 points
3,196 views
0 votes
1 answer

How can I force the login to a specific ip address?

Try to access the router's default page. It's ...READ MORE

answered Feb 15, 2022 in Cyber Security & Ethical Hacking by Edureka
• 12,720 points
2,266 views
0 votes
1 answer

how to find hostname using ip address in cmd

To find host name from IP you ...READ MORE

answered Feb 20, 2022 in Cyber Security & Ethical Hacking by Edureka
• 12,720 points
99,268 views
0 votes
1 answer

how to change your ip address?

Try using the following code. This the most ...READ MORE

answered Feb 21, 2022 in Cyber Security & Ethical Hacking by Edureka
• 12,720 points
1,406 views
0 votes
2 answers

IP Address Class C network and its gateway

The class C network has less than ...READ MORE

answered Feb 21, 2022 in Cyber Security & Ethical Hacking by Edureka
• 13,750 points
3,823 views
0 votes
0 answers

Track the exact location of IP address

I looked into IP addresses and a ...READ MORE

Feb 14, 2022 in Cyber Security & Ethical Hacking by Edureka
• 13,750 points
1,366 views
0 votes
1 answer

How to return client IP address in loopback 4?

You should also add this code in ...READ MORE

answered Mar 2, 2022 in Cyber Security & Ethical Hacking by Edureka
• 13,750 points
1,892 views
0 votes
1 answer

How do i check a ip address range whether it falls in Class A,Class B,Class C

class NetworkId{ static String findClass(String str){ int index = ...READ MORE

answered Feb 16, 2022 in Cyber Security & Ethical Hacking by Edureka
• 13,750 points
1,634 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP