my dog learned polymorphism*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes ICMP and RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "ICMP and RMI" Watch "ICMP and RMI" New topic
Author

ICMP and RMI

Ronald Wouters
Ranch Hand

Joined: Apr 28, 2005
Posts: 190
Hi all,
during testing of RMI for URLyBird I discovered that apparently ICMP needs to be enabled on my firewall for RMI to work correctly.
Below you see the output of an "Ethereal" network scan.
You can clearly see that after data is returned from my server (192.168.1.3) to my client (192.168.1.2), there is an ICMP entry in the logfile of the scan saying "Destination unreachable (Host administratively prohibited)".
If I shutdown the firewall on my server, everything works just fine.
So, what gives ? Why is ICMP needed during an RMI "conversation" ?
No. Time Source Destination Protocol Info
12 2006-01-31 05:40:30.010969 192.168.1.3 192.168.1.2 RMI JRMI, ReturnData

Frame 12 (300 bytes on wire, 300 bytes captured)
Ethernet II, Src: Xinetron_12
Internet Protocol, Src: 192.168.1.3 (192.168.1.3), Dst: 192.168.1.2 (192.168.1.2)
Transmission Control Protocol, Src Port: 1099 (1099), Dst Port: 32867 (32867), Seq: 19, Ack: 82, Len: 234
Java RMI
Java Serialization


No. Time Source Destination Protocol Info
15 2006-01-31 05:40:30.187560 192.168.1.3 192.168.1.2 ICMP Destination unreachable (Host administratively prohibited)

Frame 15 (102 bytes on wire, 102 bytes captured)
Ethernet II, Src: Xinetron_12
Internet Protocol, Src: 192.168.1.3 (192.168.1.3), Dst: 192.168.1.2 (192.168.1.2)
Internet Control Message Protocol


[ January 30, 2006: Message edited by: Ronald Wouters ]


Sun Certified Developer for the Java 2 Platform
Sun Certified Enterprise Architect for the Java Platform, Enterprise Edition 5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ICMP and RMI
 
Similar Threads
Can you use RMI-IIOP in VPN?
UDP Port Sacn
Glassfish can be accessed locally but not remotely.
Traceroute using Jpcap problem
Cannot Start RMI Server