Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IP addresses of my PCs

Status
Not open for further replies.

Jayee

Technical User
May 27, 2004
73
GB
Hi,

I'd like to know how to:

find out the IP address of each of the PCs on my Windows 2000 Server network - either from the server and/or from the local PC
change all PCs to have fixed IP address - their addresses can sometimes change

The reason I want fixed, discoverable IP addresses is I am using Instant Messaging software (a free program called Stickies) which uses IP addresses to identify PCs on the network.

I look forward to hearing your reply.

Regards,
Julia
 
start -> run -> command <enter> -> ipconfig /all

that will show you your IP on the computer if its 2000 or XP.

Go into the network neighborhood and right click on your connection. Click properties. Under the TCP/IP you can manually set the IP. I suggest you use a range like 10.0.0.x
 
jayee,
to find all ip's from a script this should work:
Code:
REM script to return all ip's used in a subnet
REM Just change the base IP address from 255.255.255.%2 to whatever range you want.

@echo off

if %1!==! goto start
if %1==h goto hundreds
if %1==t goto tens
if %1==u goto units
:start
echo Starting ping > pinglist.txt
for %%h in (0,1,2) do call %0 h %2%%h
goto end
:hundreds
for %%t in (0,1,2,3,4,5,6,7,8,9) do call %0 t %2%%t
goto end
:tens
for %%u in (0,1,2,3,4,5,6,7,8,9) do call %0 u %2%%u
goto end
:units
ping -a -n 1 255.255.255.%2|find "Pinging" >> pinglist.txt
IF %2!==259! type pinglist.txt | more
goto end
:LISTIT
type pinglist.txt | more
:end
hth regards,
longhair
 
Hi Jconvy,

This sounds like a command to be run from the PC. I will try this on my XP PCs ... is there a different command for the Windows 98 PCs in my network ?

Hi Longhair,

I will try that script - thanks.

Regards,
Julia
 
Individually IPCONFIG or WINIPCFG will work (dependant on operating system)

For multiples I have found this very usefull.

Rgds

<Do I need A Signature or will an X do?>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top