Results 1 to 2 of 2
Thread: Cannot perform a PING
- 09-15-2009, 04:31 PM #1
Member
- Join Date
- Sep 2009
- Posts
- 1
- Rep Power
- 0
Cannot perform a PING
Hi to all !
I use JSVC to execute a class (within a jar file) which only performs a Ping on a host with :
Boolean status = InetAddress.getByName(hostAddr).isReachable(timeou t);
Under Linux systems, the isReachable() function can only use ICMP protocol if the jar file has the Suid privilege (chmod +s) and has to be executed as root user, otherwise it will perform the PING with TCP protocol on port 7.
After all, I am sure that :
- JSVC has the Suid privilege
- the jar file also has the same
- jsvc is executed as root
... and my Ping don't work with ICMP (I know it because my firewalls block all TCP / 7 requests).
And if I launch as root the jar with java -jar myJar ... it's ok (in ICMP).
Does anybodyy has any idea to help me ?
Best regards
Sylvain Caillet
- 09-17-2009, 04:39 PM #2
Member
- Join Date
- Sep 2009
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
[SOLVED] JNLP - Can a signed jar download an unsigned jar and perform reflection on i
By fxRichard in forum NetworkingReplies: 10Last Post: 05-06-2009, 09:30 PM -
Help in building little text editor that perform the UNDO operation
By realahmed8 in forum New To JavaReplies: 6Last Post: 04-20-2009, 01:46 AM -
Perform one action at a time
By Melki in forum AWT / SwingReplies: 6Last Post: 12-08-2008, 07:29 AM -
How to perform some event to button click
By eva in forum AWT / SwingReplies: 2Last Post: 01-16-2008, 12:27 AM -
ping cmd
By kishi in forum Advanced JavaReplies: 2Last Post: 11-14-2007, 03:27 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks