You were right. It appears that it's something wrong with my phones WiFi. The problem should be that it's not responding to the ARP request.
Is there anything I can do in my server/client code to make it work anyway? For example connect to the phone without sending any ARP request to it, just connect directly? I tested to open the listening port on my router and then use the networks WAN IP-address, it worked like a charm. On 30 Aug, 20:58, Kostya Vasilyev <[email protected]> wrote: > Works for me. > > Note that the Spica i5700 has some... hmmm, peculiarities.... when it > comes to Wifi. You might want to verify that it actually works with your > custom firmware - download some kind of server (an FTP server, for > example - there are quite a few in Market) and try connecting to it over > Wifi from another phone / computer. > > Here is my code if it helps (note that I use NIO): > > http://pastebin.com/uBNprnrc > > -- Kostya > > 28.08.2010 19:45, shuwo пишет: > > > > > > > I'm trying to listen on a port using ServerSocket on an Android > > device. I want to be able to connect to this port over WiFi using a > > computer on the same network. > > > I get no exception when binding it to a port, however when I check > > netstat it says: > > > Proto Recv-Q Send-Q Local Address Foreign Address > > State > > tcp 0 0 (null):4040 (null):* > > LISTEN > > > I've tried countless ways of binding it to localhost, 0.0.0.0, the > > WiFi LAN IP address of the device with SocketInetAddress and > > InetAddress.getByName. Nothing seems to work. > > > When I try to connect to the port from a computer in the same WiFi > > (I've tried both netcat and Java's Socket.connect()), all I can see in > > Wireshark is an ARP request: > > > Who has [phone's LAN address]? Tell [computer LAN address]. > > > This request repeat itself until timed out. > > > I've tried the reverse way, by setting the ServerSocket on the > > computer and connecting to that port from the phone, that works very > > well. > > > My testing phone is an Samsung Spica i5700 with a custom ROM. > > > Any ideas? > > -- > Kostya Vasilyev -- WiFi Manager + pretty widget > --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

