Results 1 to 8 of 8
- 06-27-2010, 01:36 AM #1
Member
- Join Date
- May 2010
- Location
- Florida
- Posts
- 68
- Rep Power
- 0
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.
- 06-27-2010, 04:10 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 06-27-2010, 04:12 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 06-27-2010, 11:12 AM #4
Member
- Join Date
- May 2010
- Location
- Florida
- Posts
- 68
- Rep Power
- 0
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.
- 06-27-2010, 11:25 AM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
- 06-27-2010, 06:02 PM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 06-27-2010, 09:37 PM #7
Member
- Join Date
- May 2010
- Location
- Florida
- Posts
- 68
- Rep Power
- 0
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.
- 06-28-2010, 07:52 AM #8
Senior Member
- Join Date
- Apr 2010
- Location
- Philippines
- Posts
- 580
- Rep Power
- 4
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
-
private
By Gary_10 in forum New To JavaReplies: 1Last Post: 01-29-2010, 12:42 AM -
private array
By tnght in forum New To JavaReplies: 10Last Post: 12-05-2009, 08:43 AM -
Java is revealing my Private IP (router IP) to Internet
By surfinmdq in forum NetworkingReplies: 7Last Post: 10-21-2009, 04:24 AM -
More than one input in one private method
By rice in forum New To JavaReplies: 0Last Post: 10-02-2009, 05:08 AM -
Private Classes Clarification
By justlearning in forum New To JavaReplies: 1Last Post: 05-06-2008, 10:51 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks