You have two choices, use a direct cable or use PhoneNet adapters. Given what you're trying to accomplish, either one will work so use whatever is more available in your area. While it is probably possible to build the cable, something tells me that it would be challenging given those tiny connectors.