Script for Displaying IP Addresses

Posted on 2005-03-11
Medium Priority
Last Modified: 2010-04-17

I deal with users with limited Pc knowledge. Sometimes i have to remote control their pcs via the ip address. I normally have to get them to run an 'ipconfig' from the command line which can be slightly longwinded.

Is there a script that can be put on their desktop, when ran, displays their ip addresses?

Question by:funkypsiko
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 16

Accepted Solution

alain34 earned 2000 total points
ID: 13517080
create a file called 'show ip.bat' with the following code

when double click, it will display the ip address, press a key and the screen disappear!

Author Comment

ID: 13517321
That easy!

Thanks a lot.
LVL 15

Expert Comment

by:Ralf Klatt
ID: 13517726

I'd suggest creating a batch file (i.e.: ip.bat) that you may deliver to all your users ... there are two way as an approch:

If you prepare the ip.bat for your users you may prepare it in way that their hostname would already be included

@NBTSTAT -a localhost

The response your users see will be:
Node-IP-Address: [xxx.xxx.xxx.x] RegionID []

    Host not found.
Press any key . . .

... where  [xxx.xxx.xxx.x] will be their host IP address

Second way would be


This is what it would look like to your users:
Node-IP-Address: [xxx.xxx.xxx.x] RegionID []

      NetBIOS-Nametable of the Remotecomputer

       Name               Type          Status
    <USERSHOSTNAME>     <XX>  CONFIRMED   Registered
    <USERSHOSTNAME>     <XX>  CONFIRMED   Registered
    <USERSDOMAINNAME>      <XX>  GROUP      Registered
    <USERSDOMAINNAME>      <XX>  GROUP      Registered

    MAC Address = XX-XX-XX-XX-XX-XX

... where [xxx.xxx.xxx.x] will be their host IP address and XX-XX-XX-XX-XX-XX will be the MAC address of their primary adapter.

If your using a DHCP server the second option can really be helpful!

Best regards,

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question