You can only buy and sell players within your market. Your Market is Your Server.
The simple initial method used in custom leagues to check that 'friends' made it onto the same server is - if you can see your friends matches in the Friends Fixtures list then they are on your server.