Setting local connection in inventory