Where to implement Ports in Ports and Adapters?
Ports on driver side, are implemented inside the application. Ports on driven side are implemented inside the infrastructure (outside the application).
Application here can be seen as usecases, which cover the core vocabulary - two inner layers of the onion.
Ports and Adapters is an architecture also known as Hexagonal Architecture.