Not sure about which tool the GUI uses. But you can probably use 
/usr/sbin/networksetup to do what you want.

Agustin

On Aug 16, 2010, at 4:14 PM, Jonathon Kuo wrote:

> On Aug 16, 2010, at 11:44 AM, Markus Hitter wrote:
>> 
>> Am 16.08.2010 um 19:12 schrieb Jonathon Kuo:
>> 
>>> In Network Preferences there's a panel in the GUI to create a 
>>> computer-to-computer network. This works fine. The only problem is that 
>>> upon reboot, the network gets 'uncreated' and has to be recreated manually 
>>> again each time…
>>> 
>>> I think this means I need to write a program or a script that gets run when 
>>> the system boots to create such a network, but I don't know what commands 
>>> the GUI executes behind the scenes to do this. How can I accomplish this?
>> 
>> If you're one of the rare persons not being connected to another network 
>> (the Internet), you can configure your ethernet adapters manually. Just two 
>> IP addresses distinct in the last of the four numbers, no router, no DHCP, 
>> no DNS. This should survive reboots and enable you to connect from one 
>> machine to the server of the other. Works on about all OSs, not only on Mac 
>> OS X.
> 
> Hi Markus,
> 
> I'm trying to get two devices, an iPad and a Mac mini, to talk to each other 
> only, via wifi. Right now I'm manually creating a computer-to-computer 
> network on the mini and connecting to it from the iPad. Then I use Bonjour 
> over that network to communicate. Works well except on reboot or wake from 
> sleep. The mini is part of a mobile device that gets activated on demand, so 
> it's not always up.
> 
> Would what you describe above still apply to this paradigm? AFAICT, there's 
> no way to manually set an IP address on an iPad or iPhone, only to connect to 
> an existing network that it detects?
> 
>> 
>> BTW., there's usually no need to reboot a computer but for some system 
>> updates. Put it in sleep mode while not using it. Much more comfortable.
> 
> Hmm. I just tested this, and even upon wake from sleep, the 'created' network 
> goes away on the mini, and it presents a dialog to connect to whatever other 
> wifi signal happens to be present. Not good. 
> 
> -Jon
> 
> _______________________________________________
> MacOSX-admin mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/macosx-admin

_______________________________________________
MacOSX-admin mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-admin

Reply via email to