Sea Port, as well as the airport are at a distance from the town, in the district Kallao. Seaport Location : -12.050902, -77.141418.
To get to the central area of Lima - Miraflores you can easily by local bus. Stop at the next ring, opposite the petrol station, the exact Location -12.051642, -77.138262.
Payment by cash only local money. Fare 0,59 USD = 2. PEN There is bus number 36. But maybe not only this route.Take large buses, as on the photo! The trip takes about an hour. Back to the port you can take a bus here: -12.107622, -77.037005.
Local transportation in the city is very well developed. But there is only allocated stop closer to the center. Elsewhere boarding anywhere on demand.
The level of taxis is very different and depends on the company. And the price may be the same. Always heavily traded. Do not use taxis falling apart and dirty, they may not be safe!