Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

My Macbook pro is connected to my router over the AirPort. The IP address it gets changes every few hours. Is there a way on the mac to request the same address.

I do not have access to the router to configure it.

share|improve this question
    
Why does it matter how often the IP address changes - it might be better/easier to deal with that issue –  Mark Sep 12 '11 at 10:13

1 Answer 1

up vote 2 down vote accepted

Unfortunately this depends entirely on the configuration of the router. Perhaps the DHCP (Dynamic Host Control Protocol) server is configured with a very short lease time for clients, and a new IP address is assigned whenever a client has no network activity for only a short time.

To fix the problem you will need to ask the administrator of the router to lengthen the lease time, or consider creating a reserved IP address for your MacBook Pro. The means of doing that vary with the make and model of the router.

After you have worked with the administrator to reserve an IP address, you will want to create a custom network profile on your MacBook Pro for use when you are connecting to that particular WiFi router, to disable DHCP (Dynamic Host Control Protocol), and configure a static IP address.

If all of the above is not possible, perhaps someone could propose a means of writing a script on the Mac that would cause the Mac, every few minutes, to renew its IP address lease to the DHCP server that the WiFi router uses, in order that the IP address assigned by DHCP would not expire, and the DHCP server would not automatically assign a new IP address.

TRY THIS TIP: Leave Apple Mail open all the time and configure it to automatically check for new mail every 60 seconds. This might be enough to keep your IP address renewed on the DHCP server of the WiFi router.

enter image description here

share|improve this answer
    
If your router can use DCHP to assign static IP addresses based on MAC addresses, then you could avoid having to set up a new network location in System Prefs. –  joelseph Sep 12 '11 at 6:01
    
With regard to what joelseph said, let me just add that if this is the case, you will still need the administrator of the WiFi router and DHCP server to work with you so that the router/server can be configured with your MacBook Pro's MAC address (which is the unique identifier of your WiFi card or Ethernet interface in your MacBook Pro). "MAC address" stands for "Media Access Control" and has nothing to do with "Macintosh". –  Wheat Williams Sep 12 '11 at 16:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.