<configuration>
<system.servicemodel>
<servicehostingenvironment multiplesitebindingsenabled="true">
</servicehostingenvironment>
<behaviors>
<servicebehaviors>
<behavior>
<servicemetadata httpgetenabled="True" />
<servicedebug includeexceptiondetailinfaults="False" />
</behavior>
</servicebehaviors>
</behaviors>
</system.servicemodel>
</configuration>
The above configuration solves authentication problem and IP address problen for wcf(using app pool 4.0)