Dynamic ip allocation