Results 1 to 9 of 9
  1. #1
    bach_meoden is offline Member
    Join Date
    Apr 2010
    Posts
    12
    Rep Power
    0

    Default RMI through Internet.???

    I write a program use RMI . it run in LAN ok, but when i test through internet enviroment it can not run and throw exception: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketException: Softwaare caused connection abort:recv failed
    -----------
    Help me: how to run RMI throught Internet?:confused:

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Can you post the complete error message?

    One more things to outline. Think about that the way it work when your communication happen from LAN to the WAN (Internet).

  3. #3
    bach_meoden is offline Member
    Join Date
    Apr 2010
    Posts
    12
    Rep Power
    0

    Default RMI through internet

    Can you help me how to run RMI through Internet?

    (server) MyPC-->.NAT-->Modem--->No-IP--->Client(call method from server).

    Full ErrorMessage:
    "java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketException: Softwaare caused connection abort:recv failed"

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Socket exception, are you sure that you can connect to relevant IP/Port in the other location. Telnet and check first of all.

  5. #5
    bach_meoden is offline Member
    Join Date
    Apr 2010
    Posts
    12
    Rep Power
    0

    Default Telnet OK

    when i try telnet command to ip with port from orther location on internet, it success..

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    As I said earlier post the complete error message here then. The one you post is not the complete stack trace you comes with.

  7. #7
    bach_meoden is offline Member
    Join Date
    Apr 2010
    Posts
    12
    Rep Power
    0

    Default stack trace

    sun.rmi.transport.tcp.TCPChannel.createConnection( Unknown Source)
    sun.rmi.transport.tcp.TCPChannel.newConnection(Unk nown Source)
    sun.rmi.server.UnicastRef.newCall(Unknown Source)
    sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    client.Main.main(Main.java:48)

  8. #8
    bach_meoden is offline Member
    Join Date
    Apr 2010
    Posts
    12
    Rep Power
    0

    Default

    LIne 48 in Main method:
    ......
    Registry rg=LocateRegistry.getRegistry("mycompany.no-ip.org",1723);
    IActions svsi=(IActions)rg.lookup("http://www.rmi/DFS");
    ......

  9. #9
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. pc is connected to internet ???
    By mahdi-farzami in forum Networking
    Replies: 1
    Last Post: 03-26-2010, 03:28 PM
  2. My Web App on Internet
    By orion_mcl in forum Advanced Java
    Replies: 1
    Last Post: 03-14-2010, 09:13 PM
  3. Internet Explorer
    By maria.mt in forum New To Java
    Replies: 2
    Last Post: 04-17-2009, 05:10 AM
  4. Get a File form internet by URL?
    By makpandian in forum Networking
    Replies: 1
    Last Post: 02-20-2009, 06:48 PM
  5. Internet Filter
    By sundarjothi in forum Java Servlet
    Replies: 0
    Last Post: 05-15-2008, 11:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •