Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > Windows XP (TECHNET) > How can I get my IP address using Cygwin in Windows command line
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 6th March 02:26
anonieko
External User
 
Posts: 1
Default How can I get my IP address using Cygwin in Windows command line?


How can I use Windows XP command line and Cygwin to get my ip address
only?


Step 1. Install Cygwin (grep.exe cut.exe and cygwin1.dll needed)

Step 2. Simply Type (everything is in one line)

C:\> ipconfig | grep -i 'Ip Address' | grep -v ': 19'
| grep -v ': 0.' | grep -v ': 10.' | cut -b44-
  Reply With Quote


  sponsored links


2 6th March 10:37
michael w. ryder
External User
 
Posts: 1
Default How can I get my IP address using Cygwin in Windows command line?


Make sure that your cygwin bin directory, such as c:\cygwin\bin, is in
your path. Then enter:
ipconfig | grep -i 'IP Address' | cut -d: -f2
to list only your IP address.
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666