I threw this together quickly and I will put this into the issues also , but why would
this not work
public boolean isLocalHost(String hostAddress) {
| try {
| Enumeration<NetworkInterface> interfaces = NetworkInterface
| .getNetworkInterfaces();
|
| while (interfaces.hasMoreElements()) {
| NetworkInterface inter = interfaces.nextElement();
| Enumeration<InetAddress> addresses = inter.getInetAddresses();
|
| while (addresses.hasMoreElements()) {
| InetAddress address = addresses.nextElement();
| if (StringUtils.equals(hostAddress, address
| .getHostAddress())) {
| return true;
| }
| }
| }
| } catch (Exception e) {
| e.printStackTrace();
| }
|
| return false;
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958075#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...