Hi,

What you are referring to is typically know as a Client/Server Setup. Have a watch of this youtube video which may help you to understand what you need to do next:-

Understanding Client Server Architecture

Hope that helps.

Cheers,

Ian