Ad hoc network is a collection of a large number of wireless devices capable to move in an unspecified geographical area. In this paper it is a question of the geocasting which is an alternative of the multicasting problem in mobile ad hoc networks. We suggest two algorithms of geocasting in which the nodes are located without GPS. After their deployment, nodes execute a distributed algorithm of localization in order to build a global coordinates system. In this global coordinates system each node knows its coordinates. This technique of localization is used to derive two geocasting algorithms which work even in case of blanks between the sender and the geocasting region.