Agent install with wrong remote office

Agent install with wrong remote office

Domain: WORKGROUP
Remote Office:
1. Default Site: Office - Distribution Server 1, IP:192.168.1.2/24, subnet: 192.168.1.0/24

2. 2nd remote office: Factory - Direct communicate, IP Subnet: 192.168.1.0/24

The current situation is both site are separated and with same subnet configuration ( 192.168.1.0/24).

The PCs installed Agent in remote office "Office" were completed and I can remote access and get the inventory of those PC successfully. 

However, if I install an agent of Factory site and restart the pc after install completed, the agent will configured to DS mode and try to connect to DS1 in Office site. Do you know how to install another site Pc with different remote office and the same subnet config?

                  New to ADSelfService Plus?