Hi all again.so i have reached to another problem.what i need to do is to connect 2 wifi adapters each in a RPi and have them both connected to each other without using any other hardware as a middle man (router). is that possible and if yes could you guide me through it.i have searched through many forums but evedryone is using a router to do that work.thx in advance

To configure an open ad-hoc network between two computers can be as simple as just running the following commands. Change the IPs as necessary. Most wireless adapters can be configured in ad-hoc mode. If you want to run encryption then you will need to use WEP or WPA (recommended). Lots more info can be found by searching for ad-hoc networking.

Not all wireless adapters can be configured as an access point and setup can be a bit more difficult.