I did not understand your question. Your subject line talks about jnp://servername:1097 whereas the description talks about something else. Are you saying you are not able to connect to a JBoss server using its servername or IP? If yes, are you using JBoss-4.2.x? If yes, then have a look at http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss42FAQ.
By the way, the jnp port is by default 1099 and not 1097