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.

If I share my ethernet over WiFi I would like to specify the IP address of the hotspot (for now it defaults to 10.0.2.1). Can this be set somewhere in system settings?

Note: the ethernet is not connected. I just run a local web server that should be accessible by some clients connection to my hotspot (and therefore I should have a fix IP address).

share|improve this question
add comment

1 Answer 1

AFAICT, this is managed by the process com.apple.InternetSharing. When it is enabled, the file /etc/bootpd.plist is created. Here it has your IP address 10.0.2.1

However, this file is deleted and recreated when Internet Sharing restarts, so modifying it is pointless. I bet that the defaults command can be used to set a new IP address, however defaults read and sudo defaults read do not cite anything related to "com.apple.InternetSharing".

I know this isn't a complete answer, but if you find whatever is creating /etc/bootpd.plist you'll probably accomplish your goal. You may want to read this earlier question about Internet Sharing.

share|improve this answer
    
thanks a lot for this hint. I will check it. –  Reto Aebersold Oct 24 '11 at 20:28
add comment

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.