Looks like it is a JNDI related issue. Where are you running AS? Make sure java.naming.provider.url points to the right ip address your AS is running. You can find it in etc/jndi.properties.
My AS is running on the same machine ; so there is no problem of IP address I think.