This isn't a direct answer to you question, but if you want to invoke a remote EJB from another Wildfly server see EJB invocations from a remote server instance - WildFly 8 - Project Documentation Editor. From a standalone client, see EJB invocations from a remote client using JNDI - WildFly 8 - Project Documentation Editor
What should be the port number and where to set it in wildfly?
WildFly supports two different types of remote JNDI. The old jnp based JNDI implementation used in JBoss AS versions prior to 7.x is no longer supported.
For more information on remote JNDI please refer to: JNDI Reference - WildFly 8 - Project Documentation Editor
WildFly uses port 8080 that you can use from the remote client side. In order to invoke the EJBs remotely deployed on WildFly you will need to use "http-remoting" protocol. You can get the simple quickstart for full code walkthrough and demo:
I am following this guide "EJB invocations from a remote client using JNDI - JBoss AS 7.2 - Project Documentation Editor"
From the above guide,
" For example, if you have a AS7 server at 10.20.30.40 IP address which has its remoting port opened at 4447 and if that's the server on which you deployed that CalculatorBean, then you can setup a EJB receiver which knows its target address is 10.20.30.40:4447. "
Are "http port" and "remoting port" are same? What does it mean by remoting port opened at 4447?