You did not provide enough information to fully diagnose the issue, but a couple things would prevent them from being able to talk, assuming that routing is set up correctly and the wireless network is in the same network.
First, the IP addresses must be in the same network. The subnet mask determines the size of that network. for example, given the address of 192.168.1.1 with a subnet mask of 255.255.255.0, any IP in the range of 192.168.1.x (1-254) are in the same network.
Second, there must not be a duplicate IP. Neither device will be able to communicate if they have the same address. The router/switch will not know which connection to send the communication signals.
Third, the address must be valid. 0-255 are the valid numbers, but the first and last are always used for network ID and broadcasting - for subnet mask of 255.255.255.0, you can use 1-254. for a subnet mask of 255.255.255.128, you can use 1-126, or 129-254.
What router do you have ? – Lawrence – 2014-03-26T06:34:14.180
1Check what IP address you are getting when you connect to wired or wireless mode. If they belong to 2 different subnet then you can't reach each other. – Chandrasekar – 2014-03-26T10:14:23.940