This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Android and the fly likes wlan + android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "wlan + android" Watch "wlan + android" New topic
Author

wlan + android

Ilyes elleuch
Greenhorn

Joined: Mar 13, 2013
Posts: 2
please can you help i want to make communication between android and wlan :/
i have use the socket but it tell me to give him the port number of the wlan :/
please heeeeelp
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
I think you misunderstand how Wifi works. Wifi is a method to provide network connectivity for a device, much like the 3G phone network. You can use TCP/IP sockets on top of it, but you don't use sockets "to connect to a WLAN" - Android itself does that, you just have to turn it on.


Ping & DNS - my free Android networking tools app
Ilyes elleuch
Greenhorn

Joined: Mar 13, 2013
Posts: 2
the connection done on the wifi , i want to send data to then , when i use socket i should give him the port number
did you have any idea how can i get the port number please :'(
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
By "then" I assume you mean "them" - if you're supposed to connect to "them", then "they" should tell you which port to use. Unless you intend to use some standard TCP/IP protocol, most of which have established port numbers: List_of_TCP_and_UDP_port_numbers
 
Don't get me started about those stupid light bulbs.
 
subject: wlan + android