... create an application ...
I would say that the keyword here is application.
When you talk about creating an application you automatically talk about the Application layer of the OSI 7/5 layers model.
When developing an app that can communicate with another app on the network you will be using some protocols - some of them will be part of the application layer and some will be part of the transport, network, and line layer.
It's impossible to create an app-based only on the transport layer - because in order to move information along with the internet you need to have use of all the layers.
what you asking is equivalent of asking how to build a car that has ONLY wheels - no frame, no engine, no gear, no seat, no steering wheel.
I would recommend learning a little about the OSI Layers model in order to understand better this whole subject.
I would start here: https://en.wikipedia.org/wiki/OSI_model