LW-SSO Login issues for SM9.41 Collaboration

Dear All,

We are enabiling Chat feature in SM9.41, as per the SMCollaboration deployment guide , i am setting up LW-SSo in both web tier and App Server Side and while testing the url,  http://<fqdn>:8080/SM9.41/index.do its propmt me to enter login details and after that i can able to login into SM, and now if login using ip address of that web tier, its prometed to enter login detatils and once i click on login button it immediatetly logged out from that session. (

i have setup web.xml,lwssoconf.xml,application-content.xml as per the instruction given for both web tier and server side

kindly let me know how to resolve this issue.