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
5
votes
4 answers

Assigning static/same IP address to the Server everytime it logs in

I am working on udp server/client applicataion. Since for communicating with the server, all the clients must know the ip address and port number of the server. For this purpose, I have hard coded the ip and port number of my server to the clients…
Ayse
  • 2,676
  • 10
  • 36
  • 61
5
votes
2 answers

Discovering DHCP servers using multicast (224.0.0.12) in GNU/Linux/C

This question might stem from a fundamental misunderstanding of IP multicast, so please correct me if I'm off base. I'm trying to write C code to find the IP address of all the DHCP servers on the network. The use case is this: Client broadcasts…
David Dombrowsky
  • 1,655
  • 3
  • 20
  • 32
4
votes
1 answer

ICS without the default DHCP server

Using windows 7, Is it possible to turn on Internet Connection Sharing but rather than using the built in dhcp provided by windows, I want to use my own app to handle that. Is there a way to turn off the provided dhcp server.
Fredrick
  • 513
  • 4
  • 17
4
votes
0 answers

Android 9 drops WiFi connection with no Internet

i want to stay connected to a Wifi with no Internet in case to remote Control a device. I have a foreground Service that's Holding a WiFi lock and i also tried to bindProcessToNetworkLooks like this: val wifiManager = applicationContext …
kilian eller
  • 184
  • 2
  • 16
4
votes
2 answers

scapy dhcp request with custom options

How can I utilize scapy as a dhcp client to request certain DHCP options? Clients will request what they need and a dhcp client should respond accordingly. However, I need to test if certain DHCP options are being sent from a server and these are…
hiddenicon
  • 551
  • 2
  • 11
  • 23
4
votes
5 answers

Python Raw Socket to Ethernet Interface (Windows)

I'm trying to create a DHCP Server and the first step is for me to send packets through my ethernet port. I'm trying to send packets to my Ethernet interface and having an error popping up. The code is below. import socket def sendeth(src, dst,…
Sam
  • 457
  • 2
  • 6
  • 21
4
votes
1 answer

Issues with starting virtual device with genymotion and virtualBox

I am not able to start my Genymotion virtual device with virtual box..every time i try to start my device It shows following error message: when i tried to start my virtual device from my virtualbox It has the following error: Detailed List of all…
PN10
  • 1,888
  • 3
  • 23
  • 34
4
votes
3 answers

Discovering the default gateway without DHCP

A crazy question, but is there anyway to discover the default gateway without DHCP? This would be for a device on a network which does not use DHCP which does not have an IP address as yet. I was thinking if I could discover the default gateway,…
JavaRocky
  • 19,203
  • 31
  • 89
  • 110
4
votes
1 answer

BIND9 Dynamic Update not working - NOTZONE and SERVFAIL errors

This is on CentOS 7 with BIND9. When I run nsupdate to test ddns updating, I get a couple levels of failure. On adding the reverse zone, I get . Then on adding the forward zone entry, I get . I've reached the end of google in trying to identify what…
gephenzie
  • 41
  • 1
  • 3
4
votes
3 answers

Implementing DHCP client

On unix using C, my client is listening on port 68 with superuser mode. After sending DHCP discover message, when I try to receive, it blocks in recvfrom means there is no message received or is it like system has a process (DHCP client) listening…
avd
  • 13,993
  • 32
  • 78
  • 99
4
votes
3 answers

which program invokes dhclient on debian squeeze?

I'm curious about which program invokes dhclient on Debian squeeze? I suspect it's NetworkManager but it's not true. Since I have removed it (apt-get remove NetworkManager) and rebooted the computer. The dhclient program runs as usual. See: ~$ ps…
robertchen
  • 441
  • 2
  • 6
  • 13
4
votes
1 answer

C# - One MAC Address, multiple source IP addresses

I am trying to write a Windows application which will generate traffic on an ethernet link from a PC. I want to use webBrowser controls to continuously pull up web pages to generate the traffic. In this case, i want each webBrowser control linked to…
4
votes
1 answer

Probe DHCP server and dump received DNS host configuration

I would like to verify a dhcp server configuration, i.e. if a client gets the correct DNS server, domain name, etc. I have a working DHCP setup, and a computer with a static IP address from which I can send DHCP requests to the DHCP server. I am…
j13r
  • 2,576
  • 2
  • 21
  • 28
3
votes
3 answers

FreeBSD: network interface address: dhcp or static

How can I programmingly (C) know if given interface has static address or one provided by dhcp? I can look at /var/db/dhclient.leases.. Any better/cleaner way? any ioctl I can use?
hari
  • 9,439
  • 27
  • 76
  • 110
3
votes
1 answer

Android NetworkUtils

I want to use the rundhcp() function in NetworkUtils as mentioned in this post. How do you get the current DNS servers for Android? I need it to get Dhcp object for mobile connection. But the NetworkUtils class does not seem to be part of the sdk.…
Lakshman Chilukuri
  • 1,067
  • 2
  • 11
  • 20