added dynamic ip support