Static IP for a adhoc wifi network

Solution 1:

Of course, to actually do much in ad-hoc mode you even have to setup static IP addresses.

Just start the ad-hoc network, then in System Preferences -> Network "Click the lock to make changes" and then click "Advanced". And there you have it.

System Preferences, Manual TCP/IP settings