Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I determine the primary IP on a Windows Server 2003 box?

share|improve this question
up vote 3 down vote accepted

If the machine has a static IP:

Click Start

Control Panel

Network Connections

Select the name of your connection (Usually 'Local Are Connection')

Click Properties

From the list of options select 'Internet Protocol (TCP/IP)

Click Properties again

A Properties dialogue will pop up showing IP, Subnet Mask, Gateway and DNS.

Any other IP addresses assigned to the adapter can be found by clicking the 'Advanced' button.

If the machine has a dynamic (DHCP assigned) address:

Click start,

Click 'RUN'

In the box that appears type CMD and click 'OK' In the black window that appears on screen type

ipconfig /all

Hit return

Information about all of your network adapters will be returned including the IP.

Type 'exit' and hit return to end the session

share|improve this answer
I find IPCONFIG /ALL to be a lot quicker than opening network settings, anyway; especially on Windows Vista/2008, where network settings are so awfully hidden. – Massimo Aug 18 '09 at 12:38
On Win 2K3 though it just lists all the IP addresses assigned to an adapter, it doesn't tell you which one is the primary. – Marko Carter Aug 18 '09 at 12:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.