Patent ID: 8271666

Claim:
A method for managing by an intermediary between a client and a server a data session for streaming media controlled by a Real Time Streaming Protocol (RTSP) session, the method comprising: (a) identifying, by an intermediary between a client and a server, from a request of the client to setup a media stream and the corresponding response from the server via a control connection of an Real Time Streaming Protocol (RTSP) session, a first port of the client and a second port of the server over which the media stream is to be transmitted; (b) determining, by the intermediary, one or more free ports of the intermediary and modifying the response from the server to identify to the client a port of the one or more free ports as the second port of the server; (c) establishing, by the intermediary, a first listening service for communications from the server to the first port and a first internet protocol address of the client; (d) establishing, by the intermediary, a second listening service for communications from the client on the port with a second internet protocol address of the intermediary; (e) receiving, by the second listening service of the intermediary, a transmission of the media stream via a real time transport protocol from the server to the client; and (f) forwarding, by the intermediary, the transmission of the media stream to the client upon modifying the transmission to identify the second internet protocol address of the intermediary.