Added new wireless network in wireless network settings and gave it SSID

Gave laptop the IP like 192.168.0.1, mask: 255.255.255.0, gateway: 192.168.0.2

Gave the telephone with wifi the same mask but IP and gateway rewersed

If my steps are wrong please tell me the correct way to establish this connection via Wi-Fi.

Update:
The thing is that I want to connect these 2 devices (laptop and telephone) like you would connect 2 computers to transfer data without using internet. In that case you can use crossover cable, setup IPs like I did but I want to do this wirelessly.

And I did it this way because of this article
but in my case 2nd device should be telephone.

2 Answers
2

If the telephone is not the router then it should have the same gateway and subnet mask (and SSID) as the PC with a different IP address (say 192.168.0.3). If you cannot set this then I would suggest that you leave the IP address for the PC left as auto.

If the telephone is your router then you will not need to set it's IP address as it holds the Gateway IP address.

If none of this answers your problems then some more information regarding exactly what your hardware setup is would help.
Cheers

If you want to connect 2 devices in the same subnet you don't need to set the gateway (gateway by definition is a way out of the subnet).

If you cannot even connect to wireless it's not the issue with the ip but with the wireless :P Assuming you are creating Ad-hoc network - try to set Ad-hoc network mode to B-only in advanced settings of laptop wireless card.

ok, with this wireless I wrote sth by mistake, let's forget about it still important is that i don't know how connect telephone and laptop via wifi (radio waves) to create local network, connection should be keeped only between these 2 devices
–
user35232Apr 26 '10 at 15:28

Wireless is good choice (assuming your phone supports it). When you are connecting 2 devices in the same subnet you can even leave the gateway blank (as I wrote before) - it doesn't impact the connection. The reason I suggested checking Ad-hoc wireless mode - if your laptop card works in n-mode and your phone supports only b/g they won't see each other. Setting it to B-only is a safe choice. Can you see your laptops Ad-hoc network from any other device? Also - using wireless assumes that your phone has some kind of net service accessible from computer. I would advice bluetooth.
–
kyrisuApr 26 '10 at 21:44