WPAD and DHCP Servers

Robert Sneidar slylabs13 at mac.com
Tue Jul 1 16:11:27 EDT 2008

Hi Trevor.

Are you trying to set the TCP stack on the local machine to use DHCP  
or are you trying to make an actual DHCP server IN Revolution?

To set the TCP stack on Macs in a terminal session you would use:

networksetup -setdhcp <networkservice>
networksetup -setdnsservers <networkservice> <dns1 dns2|"empty"> #  
(the empty is for automatic DNS from the DHCP server)

Replace <networkservice> with the name of the device such as "Built-in  
Ethnernet" or "AirPort". Note that these services are cASE sENSITIVE.  
If there are spaces enclose in quotes. I usually just use quotes all  
the time. Can't screw it up that way.

I think you may have trouble though if the current user is not an  
Admin, in which case you will have to use sudo networksetup -setdhcp  
<networkservice> and it will probably want the password the first time  
you use sudo in that session.

for PC's in a command window use:

netsh interface ip set address name=<networkservice> source=dhcp

Again, you have to be logged in as an administrator. I am not sure  
what the DNS command is, but you can use

netsh interface ip /?

to get more info.

Sorry if I am missing what you are trying to do.

Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

On Jun 30, 2008, at 3:30 AM, Trevor DeVore wrote:

> On Jun 29, 2008, at 2:59 PM, Robert Sneidar wrote:
>> Hi Trevor. See http://www.comptechdoc.org/independent/networking/guide/netdhcp.html 
>>  for a basic treatment of the issue.
>> You use the global broadcast address for DHCP which is  
>> as the source and as the destination. (I  
>> have seen some DHCP servers use the subnet broadcast address which  
>> would be for a class B subnet, but it proved to be  
>> problematic.)
>> DHCP is a broadcast protocol, given the fact that you don't  
>> actually have an address on the subnet yet. You would issue a  
>> DHCPREQUEST on destination port number 67 using 68 as the source  
>> port. Clients always use 67 and servers always use 68.
>> ...
> Thanks for the info Bob. Very helpful.
> Now I just need to figure out how to make these requests from Rev...  
> Anyone know how to do this?
> -- 
> Trevor DeVore
> Blue Mango Learning Systems
> ScreenSteps: http://www.screensteps.com
> Developer Resources: http://revolution.bluemangolearning.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

More information about the use-livecode mailing list