You can use Velcro, or Glue, or just stack them if you want a temporary solution.
If you mean you want to transfer data between them, hook them up to the same network. Do a web search on "setting up a home network". You may want to add some more details like WHY you want to connect them and what your network setup is like, etc...