Skip to main content
Patrick Papin
Associate II
February 19, 2018
Question

How to release an IP address

  • February 19, 2018
  • 2 replies
  • 1523 views
Posted on February 19, 2018 at 17:13

Hello,

I use a SPWF04SC, and I create a web page on it 's memory.

I want to limit the access at only one client.

I use the command  'ip_num_clients = 1', that  work good but when the client is dissociated , no more client can be associated because the IP adress is use.

What command can let the IP adress free for a another client,

Best regards

#what-command-can-let-the-ip-adress-free-for-a-another-c
    This topic has been closed for replies.

    2 replies

    Elio Cometti
    Visitor II
    February 19, 2018
    Posted on February 19, 2018 at 17:26

    Hello,

    I suppose the SPWF04 is MiniAP, so I see two ways:

    - make the client release the lease and disconnect: the IP address wille become immediately available for another client/station;

    - reduce the lease time: the IP will become available at most half the lease time after the station has disconnected (e.g. lease time = 120 seconds: the IP becomes available less than 60 second after the station has disconnected).

    Patrick Papin
    Associate II
    February 20, 2018
    Posted on February 20, 2018 at 09:09

    Hello Elio,

    Thank you for your answer.

    -Effectively the SPWF04 is MiniAP, and it have a web page.

    -At a moment only one client can be connect to the server and consult the web page.

    -When the client are disconnected, a new client can connect to the AP and consult the Web page.

    For that, I configure this parameters:   -ip_num_clients=1;

     when the client disconnect, and after the lease time: a new client can be associated but  but don't have IP address ?

    Best regards

    Elio Cometti
    Visitor II
    February 20, 2018
    Posted on February 20, 2018 at 15:02

    Hello,

    I'm not sure I got your point.

    1st of all let me correct a mistake in my previous post: when station disconnect then its assigned IP is made available by server after lease_time seconds from last renew (and not half that period).

    Please take care the min value for ip_dhcp_lease_time is 60 seconds. Smaller values will cause the DHCP server to not start.

    Also, the ip_num_clients config vars actually control the number of IP the DHCP server will deliver to associated stations, while maximum number of station that can associate to the MiniAP is always 5.

    Let's make an example.

    Let's pretend to set ip_num_clients=1, ip_dhcp_lease_time=70, to setup the SPWF04 in MiniAP mode with DHCP server activated and 2 stations (Station0 and Station1) to come around at some time.

    Let's assume Station0 associate and receive an IP lease at time t

    0

    : the lease will expire at t

    0

    +70, but likely Station0 will issue a new DHCP Request (to get confirmation of the lease) at about t

    1

    =t

    0

    +35.

    Now, let's pretend Station0 to disassociate at t

    1

    +20: its IP will remain allocated until t

    2

    =t

    1

    +70, then lease will be reused by DHCP server.

    Station1 can associate at any time, but (because ip_num_clients=1) will get an IP only if the HDCP discover message is issued after t

    2

    .

    Hope this answer your question.

    Best Regards,

    Elio

    Elio Cometti
    Visitor II
    February 21, 2018
    Posted on February 21, 2018 at 16:05

    Hello Patrick,

    I see your module's FW is 1.0.0, while I'm using 1.1.0.

    I was not aware of this behavior with FW 1.0, my apologizes.

    Please move to FW 1.1.0.

    Elio