login-by IP

Is there a way to authenticate a hotspot user based on his IP address (ip as username) and fixed password just like MAC authentication, as of now MAC authentication works fine with a third party radius.