1. A method for managing context in a communication system, the method comprising: detecting a packet transmitted between a device and a server; requesting a device profile database for information on an IP address of the device by sending an IP request message; receiving an IP response message from the device profile database; and updating the context according to the IP address information in the IP response message.