Questions tagged [ipconfig]

A Windows command used to view and modify network IP-related settings.

Useful links:

  1. IPCONFIG on technet.
  2. IPCONFIG on SS64 help pages.
97 questions
1
vote
0 answers

Why does PIP_ADAPTER_INFO->LeaseExpires contain a different value after each call to GetAdaptersInfo

I am trying to create a program that achieves the same functionality as running the command ipconfg /all in Windows. I have managed to implement pretty much all the functionality however I am having difficulty getting the correct date and time for…
David
  • 361
  • 2
  • 10
1
vote
0 answers

how to set dynamic domains and subdomains in /etc/hosts

in /etc/hosts file 127.0.0.1 admin.localhost 127.0.0.1 school1.admin.localhost 127.0.0.1 school2.admin.localhost 127.0.0.1 school3.admin.localhost 127.0.0.1 school4.admin.localhost 127.0.0.1 school5.admin.localhost I want to replace…
1
vote
1 answer

Find if a computer is using DHCP or Static through CMD?

I am looking for a cmd command to return if the currently connected NIC is using a static or DHCP address. DHCP: YES or NO is acceptable. I think ipconfig might be an option, but I need a way to sort out the DHCP field as well as make sure the field…
user3585839
  • 1,459
  • 3
  • 12
  • 18
1
vote
2 answers

Java program and ipconfig shows different IP address

Recently the IP address of my system as show by the ipconfig has changed from 10.2.200.76 to 10.2.200.75 but the IP address returned by the following java code InetAddress.getLocalHost().getHostAddress() is still 10.2.200.76. My question is, "how…
Keshaw Kumar
  • 317
  • 1
  • 4
  • 15
1
vote
3 answers

Typing 'ipconfig' into Command Prompt shows two IPv4 addresses. Which one is my computer?

I'm tring to test my Windows Phone 8 app on an actual device, but I need the IP Address of my computer in order to do this. When I type 'ipconfig' in the command prompt, it shows two different IPv4 addresses and I can't tell which is the correct one…
Vigs
  • 331
  • 2
  • 3
  • 14
1
vote
1 answer

Shell script to get IPV4 address dynamically and add to route table using cygwin console for windows

I am writing a shell script which runs on cygwin console for windows, my scritp looks like this #!/usr/bin/bash cmd /c start /d "C:\cygwin\bin" ipconfig | findstr /R /C:"IPv4 Address" ipconfig #to print route add 10.2.139.1 192.168.104.1 But when…
Rohith Gowda
  • 137
  • 2
  • 2
  • 12
1
vote
2 answers

Java Runtime.getRuntime().exec("ipconfig/release"); returns error?

I want to disconnect my computer from the internet, and the best way that I can think of, is running the ipconfig/release from the cmd. To do so, I did Process result = Runtime.getRuntime().exec("ipconfig/release"); This throws an error however,…
StupidQuestions
  • 347
  • 2
  • 10
1
vote
2 answers

Using variables in sed

I'm a n00b trying to return my IP address to a variable, which is then used in the sed command within a bash script. I'm trying to replace the text 'mycomputer' in a file with my IP address without much luck. Here are my…
emeidos
  • 31
  • 4
1
vote
2 answers

Extract IP and DHCP and set to variable from ipconfig /all. Batch

I am trying to extract the DHCP status and IP address from ipconfig /all and set it to a variable. Can this be done?
Kwehmann
  • 21
  • 4
1
vote
3 answers

Trying to build a IP address changing tool with cmd .bat extension

I'm trying to build bat file for my uncle who needs once click solution to change ip as I advised him not to fidget with fragile modem power button. How can I achieve also some option will be attractive. I tried this but didn't…
Shiva
  • 717
  • 9
  • 22
1
vote
0 answers

Need to fix route table to allow local connections

I'm using a couple of different VPN products on Windows 7 which DO NOT allow for configuring of the split tunnel. I know it's possible to modify the route table after the vpn is connected, but i haven't some trouble getting it to work given other…
mswanson
  • 283
  • 3
  • 8
1
vote
2 answers

How to access webservice hosted in lIS from LAN connected Other PC?

I have created one webservice which I have hosted in my IIS, now I want to access or call that webservice from LAN connected PC. So please help me out. Things I have tried are : Ping to check connectivity Using IpAddress I tried to access it from…
Vishal Patel
  • 41
  • 4
  • 9
1
vote
3 answers

Parsing windows 'ipconfig /all' output

I am having a bit of trouble parsing the output of 'ipconfig /all' using a regex. Currently I am using RegexBuddy for testing, but I want to use the regex in C#.NET. My output is: Ethernet adapter Yes: Connection-specific DNS Suffix . : …
Michael S.
  • 305
  • 4
  • 17
1
vote
1 answer

Windows Phone 8. Ip configuration

How I can get network parameters (ip4, ip6, mask, gateway) for all available interfaces in WindowsPhone 8? As like ipconfig. I found how I can do it with Iphlpapi, but I can not find it in WP8
NikedLab
  • 883
  • 4
  • 11
  • 31
1
vote
1 answer

getifaddrs to parse only the IP from etherenet interface (eth) or wlan interface

I have used the program which is present in the following link http://www.linuxhowtos.org/manpages/3/getifaddrs.htm . but it prints all the IP like loopback,eth0,eth1 lo etc now I need to get only the ip which are active excpet loopback ip ex…
indra
  • 832
  • 4
  • 17
  • 33