The present invention discloses a server automatically detecting a new
joining portable device in a wireless local area network (LAN) and
providing the new joining portable device with a new identification
number, thereby the portable device can automatically access the wireless
LAN and obtain the services from the server.