Results 1 to 8 of 8
  1. #1
    mr_anderson is offline Member
    Join Date
    May 2010
    Location
    Florida
    Posts
    68
    Rep Power
    0

    Default Ideas about private to private IP networking over the Internet

    Hi
    I am kind of new to java and I was wondering what are the techniques used to connect two private IPs over the internet using java (socket, RMI, any other techniques), as it is known private IPs within different networks cant communicate with each other without a public IP to route the data from one to another, so what tools does the java provide for such cases, willing to hear your ideas and suggestions

    Regards.
    Aderson.
    Last edited by mr_anderson; 06-27-2010 at 01:41 AM.

  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

    There is nothing to do with Java technologies specifically. It's all about socket communication.

    The logic is you should have a communication Chanel over the network (internet, local network, etc...). So how you can recognize the two hosts, or the two communication parties over the network. There should be a unique way identify them. Solutions is the IP. Now you know the IPs and say somehow you create/initiate the communication. Say using Java technologies. Now how you connect to the host, or the PC? How network get into your PC? Ports come to the picture at this time.

    Within the network anyone can tamper/interrupt your communication. That's what basically hackers do. So prevent those things we are using encryption and such technologies.

    So my suggestion is read more about how to implement socket communication in Java first of all. Then you can have a better idea about this.

    Hope this is helpful to you. Good luck.

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

  4. #4
    mr_anderson is offline Member
    Join Date
    May 2010
    Location
    Florida
    Posts
    68
    Rep Power
    0

    Default

    Thank you for your reply and your helpful info, although I was meaning applications like LogMeIn , PCAnyWhere and No-IP i.e. they connect private IPs over the internet by routing the data via a public IP address (my question was about those applications, I think I didnot make my point very clear when I posted the topic sorry :D).
    Thank you.

    Aderson.

  5. #5
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,361
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by mr_anderson View Post
    Thank you for your reply and your helpful info, although I was meaning applications like LogMeIn , PCAnyWhere and No-IP i.e. they connect private IPs over the internet by routing the data via a public IP address (my question was about those applications, I think I didnot make my point very clear when I posted the topic sorry :D).
    Thank you.
    It may sound silly, but what about setting up a VPN connection? That doesn't make it a Java issue anymore ...

    kind regards,

    Jos

  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

    Quote Originally Posted by mr_anderson View Post
    Thank you for your reply and your helpful info, although I was meaning applications like LogMeIn , PCAnyWhere and No-IP i.e. they connect private IPs over the internet by routing the data via a public IP address (my question was about those applications, I think I didnot make my point very clear when I posted the topic sorry :D).
    Thank you.

    Aderson.
    For me too, this is not a good idea. I don't think that it's easy to, actually I think it's not possible, use those application through our interface. I don't think they provide such facilities.

  7. #7
    mr_anderson is offline Member
    Join Date
    May 2010
    Location
    Florida
    Posts
    68
    Rep Power
    0

    Default

    although I didnot use VPN before but as I know the VPN requires a VPN router or VPN server enabled at the public IP, I am looking for a solution that can solve this issue using software only (keep in mind the private IP addresses on different networks).
    let us say you want to access your home pc from your pc at work, both PCs with private IP addresses and on different networks, as far as I know the solutions used right now (except for VPN) are the applications like the PCAnyWhere and LogMeIn etc.

    Regards.
    Anderson.

  8. #8
    mine0926 is offline Senior Member
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    580
    Rep Power
    5

    Default

    PcAnyWhere connects TWO computer throught telephone lines. I used PcAnywhere in my past application and it work fine. BUT you have to remember that PcAnywhere send data through telephone wires so big files is an issue here. You have to create temporary files which saves only records that changes. ALSO, keep in mind that database servers (MySQL, SQL Server, ORACLE, etc) is not a advisable or recommended to be copied and paste (which is what pcAnywhere doing) because they use log file.


    LogMeIn is an application which apply VPN networking.

    You may also want to search about port forwarding. If you look at your IP you see a private IP (mostly its 192.168.x.x) or class C IP address, but how are you able to connect in the Internet? Its because your Internet Service Provider(ISP) gives you an Public IP. Im not saying that ISP uses port forwrding, what i am trying to say here you have an external IP (uses to connect to internet) and internal ip (uses to connect to a LAN). So in Port forwarding your private IP to have a LAN Connection and public ip to connect two computers through internet. Youhave to set this in router and in your firewall or your request to connect to another computer will be denied.

    all of this can be done in NETWORKING and not in APPLICATION.

    Good Luck,

Similar Threads

  1. private
    By Gary_10 in forum New To Java
    Replies: 1
    Last Post: 01-29-2010, 12:42 AM
  2. private array
    By tnght in forum New To Java
    Replies: 10
    Last Post: 12-05-2009, 08:43 AM
  3. Replies: 7
    Last Post: 10-21-2009, 04:24 AM
  4. More than one input in one private method
    By rice in forum New To Java
    Replies: 0
    Last Post: 10-02-2009, 05:08 AM
  5. Private Classes Clarification
    By justlearning in forum New To Java
    Replies: 1
    Last Post: 05-06-2008, 10:51 PM

Posting Permissions

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