Questions tagged [dhcp]

The Dynamic Host Configuration Protocol (DHCP) is an auto configuration protocol used on IP networks.

The Dynamic Host Configuration Protocol (DHCP) is an auto configuration protocol used on IP networks and an extension of the Bootstrap Protocol.

DHCP allows for computers to be configured automatically to communicate with each other over an IP network without the need for setup by a network administrator.

It keeps track of the computers connected to the network with a central database and prevents two computers from accidentally being configured with the same IP address.

784 questions
3
votes
2 answers

How do I send a DHCP request to find DHCP server IP address? Is this possible?

Is it possible to write a small script that will send out a DHCP broadcast request and find the DHCP server address? I need this for a project, but my research led me to believe that you cannot do this on Windows? I would need a small script for…
user5275692
  • 603
  • 1
  • 6
  • 11
3
votes
0 answers

Retrieving DHCP options in iOS

I would like to ask if there is a way to retrieve (query) DHCP Option from DHCP in iOS (Swift/Objective-C)? E.g. if I would like to retrieve IP address from DHCP Option 7 (Log Server), what should I do?
user4768437
3
votes
0 answers

Storing dhcp client identifier in server for use during later leases

I want to store client identifier in the server so that the server can refer to that value later on while trying to lease IP addresses to other clients. Each client sends out an identifier and if another client shows up with the same identifier, I…
SteveIrwin
  • 115
  • 2
  • 14
3
votes
1 answer

How to find DHCP lease information from an arbitrary client?

I am writing Win32 API (C++) code to query a network for certain information. One of those pieces of information is the DHCP lease end time. I was able to get most of the information I needed from the GetIpNetTable (and/or GetIpNetTable2) functions;…
Arcite
  • 214
  • 2
  • 11
3
votes
2 answers

How to find out DHCP info on Android for a non-WiFi connection?

I have Android device, which is connected to a network through Ethernet. How can I get DHCP info for this connection?
Interkot
  • 697
  • 8
  • 10
3
votes
5 answers

How can I push/pull between git repositories when both are behind firewalls/NATs/...?

I'm intrigued by git. I've used nearly all of the usual players over the past decades. Currently on SVN and not really happy. I think I understand the basics, but I don't understand one key concept about the distributed nature: how does a user in…
fishtoprecords
  • 2,394
  • 7
  • 27
  • 38
3
votes
3 answers

Redirecting Ethernet traffic through another interface

I'm working on a project where I want to redirect ethernet traffic through another interface. The setup is as follow: I have a computer with a working internet connection. I also have a MBED LPC1768 board which I can connect by USB with my computer.…
Devos50
  • 2,025
  • 4
  • 25
  • 56
3
votes
1 answer

Get/Set android IPv4 address

I need a simple helper class to do these jobs on API 18 and above: 1- set / get static ip address for the device. 2- set / get dhcp ip address for the device. public static class IPv4Helper { public static class ipV4Parameters { String…
Ahmad Behzadi
  • 1,006
  • 15
  • 30
3
votes
1 answer

Android: How to prevent a Wifi disconnect on DHCP renewal?

We are developing software on a custom Android platform and we begin to receive complaints from customers about the state of the Wifi connection. It seems that once in a while, they loose their Wifi connection for 1-2 seconds and then it comes back…
slaadvak
  • 4,611
  • 1
  • 24
  • 34
3
votes
0 answers

iPhone Connected WiFi Router's DHCP IP Address programmatically

How to get the iPhone's connected WiFi Router's DHCP IP Address programmatically? I am searching for the code which provide the currently connected WIFI Ip with which my iPhone is currently connected.
Akash Thakkar
  • 941
  • 1
  • 6
  • 16
3
votes
0 answers

DHCPD, no free leases

I have an ubuntu 14.04 server and isc-dhcpd-4.2.4. The clients that i already defined in config can get their ip addresses, and newly added mac addresses cannot get their ip number and i got "no free lease" error. My /etc/dhcp/dhcpd.conf file…
cem
  • 1,535
  • 19
  • 25
3
votes
3 answers

Run "ipconfig/release" in Windows to do DHCP

I am having a problem with starting my assignment because of a requirement that I can't pass through. We were instructed to perform ipconfig/release and ipconfig/renew in a Windows command line interface. I tried the first but it said that: No…
user1685185
3
votes
1 answer

How can i get option number from an DHCP header in scapy?

I have an DHCP packet received. I want to obtain the number of the option from that packet. E.g. server_id option has number 53. I need to do this in scapy. I tried if pkt[DHCP].options[i] == 53: do something but dosen't work.
user2399087
  • 305
  • 2
  • 14
3
votes
4 answers

How to find substrings in log file and increment the counter using dos batch file

Can anybody help me in making the windows batch file to find the substring from the log file. Sample of the log.log file is as below ID,Date,Time,Description,IP Address,Host Name,MAC…
Fahim
  • 31
  • 2
3
votes
1 answer

DHCP Options field padding

According to RFC2132 "Pad Option" (0s) CAN be used to align subsequent fields on word boundaries. But looking at DHCP packets I can't tell what is the size of the "word". Onetime "Options" field is 32 bytes, one time is 60 bytes. In my setup the…
Chris
  • 1,213
  • 1
  • 21
  • 38