antoniovincenzo2
asked on
accesing a server which is inside a LAN
Hi. I am trying to make a program like PC anywhere (just to learn), so I should create a server and a client program. The problem comes because my client computer is inside a LAN. By an example it will be easier to explain the problem:
My client computer's IP is 10.4.1.5.
My ISP's IP is 200.43.1.2.
So, my client will be running but if I am outside the LAN, how can I reach it?
How do I have to program it to tell it that the client has to connect to 10.4.1.5 through 200.43.1.2??
And to make things more difficult, is there a way to do it if the LAN's IP is not static (ie, using DHCP)?
Just any comments, ideas or links will be appreciated.
THX.
My client computer's IP is 10.4.1.5.
My ISP's IP is 200.43.1.2.
So, my client will be running but if I am outside the LAN, how can I reach it?
How do I have to program it to tell it that the client has to connect to 10.4.1.5 through 200.43.1.2??
And to make things more difficult, is there a way to do it if the LAN's IP is not static (ie, using DHCP)?
Just any comments, ideas or links will be appreciated.
THX.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I don't speak for the PCAnywhere team, but I do work for Symantec. :) jhance is correct. Your network isn't fully documented here, but I will make some assumptions. PCAnywhere consists of a client and a server. It's the same program, but runs in different modes. If you were using a 10.x.x.x address as the client and you were using NAT, you would be able to connect to the PCA server running on any computer, whether it was on your local network or on the internet. However, if the PCA server is running on the 10.x address, you would not be able to see it from outside the local network without using port forwarding or VPN or something like that. In this case, it would not work if the network isn't properly configured. BTW, PCA is sort of a bad example to use for an analogy. The technologies involved are incredibly complex. There are many layers of the windows OS that we have to hook into to get it to work. Also, one of the best ways to be able to locate a box on the internet that has an IP address than can change because of DHCP is to use a dynamic dns service. Then, you can always reference the server by name.
brian
brian
I'm just going by what you've said (and that is not much, by the way...)
From your description, it seems you have:
HOST TO CONTACT |--{private LAN}--| FIREWALL |--{PUBLIC INTERNET} |-- YOU
If PCAnywhere is to work, there MUST BE a path through the firewall on port 5631. Port 5631 is the default port used by PCA to communicate.
If there is not opening on port 5631, there is no PCAnywhere connection.
You will have the SAME problem.
From your description, it seems you have:
HOST TO CONTACT |--{private LAN}--| FIREWALL |--{PUBLIC INTERNET} |-- YOU
If PCAnywhere is to work, there MUST BE a path through the firewall on port 5631. Port 5631 is the default port used by PCA to communicate.
If there is not opening on port 5631, there is no PCAnywhere connection.
You will have the SAME problem.
ASKER
Thanks a lot guys, i will ask the experts team to split the points.
antoniovincenzo2
You asked to split points between jhance (45 points) and bkrahmer (30 points).
I have reduced the points on this question from 75 to 40 as indicated by your request at Community Support. Please copy the URL and create a new question in this topic area for the other Experts to whom you wish to award points. The title of the question should read "Points for", followed by the Expert's name. In the question itself, you should paste the link to the original question and perhaps a comment stating that the points are for their help with that question. Once you have created the new questions, you can go back to the original, and accept the comment from the Expert for whom you did not create a new question. The Experts will comment in your new "Points for" question(s), which you then accept and grade to close.
If you have any questions, please don't hesitate to ask.
Thank you.
** Mindphaser - Community Support Moderator **
You asked to split points between jhance (45 points) and bkrahmer (30 points).
I have reduced the points on this question from 75 to 40 as indicated by your request at Community Support. Please copy the URL and create a new question in this topic area for the other Experts to whom you wish to award points. The title of the question should read "Points for", followed by the Expert's name. In the question itself, you should paste the link to the original question and perhaps a comment stating that the points are for their help with that question. Once you have created the new questions, you can go back to the original, and accept the comment from the Expert for whom you did not create a new question. The Experts will comment in your new "Points for" question(s), which you then accept and grade to close.
If you have any questions, please don't hesitate to ask.
Thank you.
** Mindphaser - Community Support Moderator **
ASKER
Sorry, I don't understand what you are saying. I should create two questions (one "Points for jhance" and another one "points for bkrahmer"), and paste a link to this page, and when they post a comment i accept it and give them the points.
But in that case I would need another 75 points.
Is that what you are saying?
But in that case I would need another 75 points.
Is that what you are saying?
No, just one new question. The other points are awarded when you accept one of the expert's comments. I just noticed that I didn't refund points. Will do right away ...
Accept jhance -> 45 p
New question for bkrahmer -> 30p
Accept jhance -> 45 p
New question for bkrahmer -> 30p
>> and have been rewarded with a grade of C.
YOU ARE A JERK! PLEASE DO NOT EXPECT TO RECEIVE ADDITIONAL HELP IN THE FUTURE!!!
YOU ARE A JERK! PLEASE DO NOT EXPECT TO RECEIVE ADDITIONAL HELP IN THE FUTURE!!!
jhance,
Consider this your last warning. You cannot and will not flame users. When you have issues with them contact us, you know how.
That ends this discussion in this thread. Anymore concerning this will be via the admins, weslennon@experts-exchange .com , myself at computer101@experts-exchan ge.com , or netminder@experts-exchange .com
Anymore infractions of this nature will result in a review of your account.
Computer101
E-E Admin
Consider this your last warning. You cannot and will not flame users. When you have issues with them contact us, you know how.
That ends this discussion in this thread. Anymore concerning this will be via the admins, weslennon@experts-exchange
Anymore infractions of this nature will result in a review of your account.
Computer101
E-E Admin
Next you'll be threatening to CUT MY PAY!!!
ASKER
But, how "PC Anywhere" can do it? Is the server communicating all the time with some third party, and then the client comunicates with that third party as well? Are you saying that if the administrator of the ISP doesn't allow this kind of access, "PC Anywhere" woudn't work?
I am absolutely NOT assuming that your answer is wrong; on the other hand, for what I've been reading, that's the truth. I just want to check all the options.
Thanks again.