Most devices in ubiquitous network environment have limited menory and processing power, thus they can,t provide all services even when in suitable locations. Mobile agent technology could be implemented to improve resource efficiency.The goal of this paper is to implement mobile agen technology for location-based printer service. The system consists of four parts: (1) mobile agent server, (2) locations-based service server, (3) printer service, (4) client. it is observed that mobile agent offers many advantages for ubiquitous and mobile computing settings