Click to See Complete Forum and Search --> : How to Get IP Address from DOS Machine


SCHTUDE
May 29th, 2002, 02:17 PM
Hello. Does anyone know what command I can use to get an IP address off of a DOS machine? Thanks!!

Archer
May 29th, 2002, 05:17 PM
Typing IPCONFIG at the dos prompt should get you the IP/Subnet/Gateway information if its been set correctly.

TSSTSS
March 2nd, 2004, 02:15 PM
What Archer said or if you're using Win95 type WINIPCFG
Hello. Does anyone know what command I can use to get an IP address off of a DOS machine? Thanks!!

hudsonsmith
March 2nd, 2004, 04:45 PM
What Archer said or if you're using Win95 type WINIPCFG
Well, if he hadn't figured it out in two years, I don't think your input is going to help. :eek2:

cisco2
March 3rd, 2004, 01:46 PM
I don't know that ipconfig and winipcfg were included in DOS. I think the route command was but I can't recall for certain.

Try route print (i.e. C:\>route print)

The IP address with a 32 bit netmask (255.255.255.255) that uses 127.0.0.1 as it's gateway is your IP address.

cisco2
March 3rd, 2004, 02:20 PM
I looked into some lists of DOS 6.22 commands and utilities, didn't see route listed. Thinking back (way back) I seem to recall we had to enter the TCP/IP details in a cfg file. I think it was called NET.CFG. That was for DOS PCs running Netware. I can't recall for certain though.

Since DOS didn't have any native networking, you'd have to have some additional software running. That software should have some method of setting and verifying your TCP/IP protocol stack details.

netstat -r will give you your routing table as well. Really depends on what software you're running though. If the PC in question is Win95 or later, you can use WINIPCFG, IPCONFIG, or ROUTE. If not we'd need to know more about what software you're running.

Stalemate
March 3rd, 2004, 07:40 PM
...netstat -r will give you your routing table as well. Really depends on what software you're running though...

The last column listed when running that command will let you know what IP(s) the system is using.

NooNoo
March 8th, 2004, 09:42 AM
dos... load MSD?

Reese
July 14th, 2004, 12:39 AM
type in ipconfig then hit enter thats how I get my ip