A method of setting up a wireless long range communication network between several communication units where the communication units are provided with a Long-range Adaptive Mobile Beam-forming Ad-hoc Communication (LAMBACOM) unit including an array RF transceiver section, a RF switching section, an antenna element section, a communication controller and a positioning system comprising a spatial phase front analysis section, a delay section, a beam-former section, and a modulator/demodulator, wherein the method includes the following steps: a. passing digitalized RX signals of received communication message from the RF-transceiver section in receive mode through the spatial phase front analysis section, performing, by said spatial phase front analysis section, a frame-by-frame spatial scan for a phase modulated, coherent code-word from other communication units, b. calculating by means of the spatial phase front analysis section physical direction of each received communication message from another communication unit in the network, c. measuring time-of-arrival for each received communication message between the communication units by using first arriving correlation peak to determine time-of-arrival of received data frame based on correlation of a code-word that is included in each received communication message in the network by means of the spatial phase front analysis section and determining phase relations for each digitalized RX signal in the form of phase coefficients, d. performing beam-forming by applying the phase coefficients from the spatial phase front analysis section to the beam-former section before first RX data of received communication messages are passed through a plurality of delay elements (18a-n) of the delay section located between the phase front analysis section and the beam former section, wherein the beam-former section next applies the phase coefficients to the plurality of RX streams for maximizing signal to noise ratio and suppressing interfering signals to obtain a combined signal which is passed to the modulator/demodulator unit and communication controller for achieving an optimum antenna shape and demodulation of the first received RX data of received communication message from any direction, e. transmitting a response message from the communication controller through the RF transceiver section to other communication units containing information about time-of-arrival from step c) and delay time from the time-of-arrival to the transmission of the response message, f. establishing, by means of the communication controller, relative positions between communication units in the network by combining positioning data from the phase front analysis section and exchanging mutual position information between all communication units in the network through the same RF transceiver section that is used for positioning. a. passing digitalized RX signals of received communication message from the RF-transceiver section in receive mode through the spatial phase front analysis section, performing, by said spatial phase front analysis section, a frame-by-frame spatial scan for a phase modulated, coherent code-word from other communication units, b. calculating by means of the spatial phase front analysis section physical direction of each received communication message from another communication unit in the network, c. measuring time-of-arrival for each received communication message between the communication units by using first arriving correlation peak to determine time-of-arrival of received data frame based on correlation of a code-word that is included in each received communication message in the network by means of the spatial phase front analysis section and determining phase relations for each digitalized RX signal in the form of phase coefficients, d. performing beam-forming by applying the phase coefficients from the spatial phase front analysis section to the beam-former section before first RX data of received communication messages are passed through a plurality of delay elements (18a-n) of the delay section located between the phase front analysis section and the beam former section, wherein the beam-former section next applies the phase coefficients to the plurality of RX streams for maximizing signal to noise ratio and suppressing interfering signals to obtain a combined signal which is passed to the modulator/demodulator unit and communication controller for achieving an optimum antenna shape and demodulation of the first received RX data of received communication message from any direction, e. transmitting a response message from the communication controller through the RF transceiver section to other communication units containing information about time-of-arrival from step c) and delay time from the time-of-arrival to the transmission of the response message, f. establishing, by means of the communication controller, relative positions between communication units in the network by combining positioning data from the phase front analysis section and exchanging mutual position information between all communication units in the network through the same RF transceiver section that is used for positioning.