To achieve the foregoing, and in accordance with the purpose of the present
invention, a method and apparatus is disclosed which provides
communication between at least two applications. The communication is
achieved by accepting a connection from a second application on a first
port and allocating a second port to receive the communication from the
second application. Once the second port has been allocated the second
port translation is recorded. The communication is sent to the first port
from the second application and received on the second port. The
communication is then delivered to a first application from the second
port. In one embodiment the first application requests the communication
from the first port and the first port is translated to determine the
second port such that the communication is delivered to the first
application in the step of delivering the communication to the first
application.