Click on Site Actions > Site Settings. Look under Galleries for List
Templates. Click on that and then upload the .STP file to the gallery. Now go
into Site Actions > Create and you should have the option of creating a
library based on the list from your other server.
Same applies to document library.