Remote Access
Can anyone please provide piece of code allowing me to access a remote machine (exists within another remote LAN), regarding the following:
-I have no permission to configure the router of the remote LAN.
-Both machines have no real IP.
All what I need is piece of code transferring packets between the two machines.
Whether this is possible depends entirely on the firewall/router configuration of the remote LAN. If you can't change that and if it denies you access to its inner network, as it should, you can't do it.
ejpa at 2007-7-14 21:47:30 >

There is not firewall, and the router configurations do not prevent that, but also there is no NAT used, so all the needed, is piece of Java code to make the connection.
new Socket("ip address",port);
ejpa at 2007-7-14 21:47:30 >

that code can access the machine on my LAN only, not the remote LANs
Can you:(a) ping the remote machine?(b) telnet to port 7 of the remote machine, or any other port?If not, it can't be done, Java or no Java.
ejpa at 2007-7-14 21:47:30 >

How can I ping a machine exist inside faaaaaaaaar (remote) LAN, and my machine exist inside another LAN?
> How can I ping a machine exist inside faaaaaaaaar> (remote) LAN, and my machine exist inside another> LAN?enough said
Hi All,Please let's cut this time wasting, suppose the folowing case:I have machine with virtual IP 10.0.0.X, behind router with real IP let's say W,X,Y,Z, how can i ping this machine remotely?Note:There is no firewall, also not Nat is allowed to be used.
>> Please let's cut this time wastingI agree.> If not, it can't be done, Java or no Java.Still true. Is there something in that sentence you don't understand?
ejpa at 2007-7-14 21:47:30 >

Hi All,
I think i am still talking English, am not I?
I can ping the the router itself using:
"PING W.X.Y.Z"
but how can i ping the local machines?
"PING W.X.Y.Z 10.0.0.X" or How.
Please all, what i need is the syntax.
Is not here anyone speaking English plzzzzzzzzzzz?
If the machine you want to connect to only has a local IP address inside the router, and if the router isn't configured to do port forwarding from some well-known port, you can't make the connection.
ejpa at 2007-7-14 21:47:30 >

WOW! finally reasonable reply.My router does not using post forwarding, so how eMule still wokring, can you plz help with that?
Was there something unreasonable about reply #1? or #5? and do you seriously expect to get further help by being rude to the people who are trying to help you?Forget it.
ejpa at 2007-7-14 21:47:30 >

I am not rude, but i am putting a mark for anyone will review this question in the future.I did not say that any of the replies i got were wrong, but all of them where not related to the question, else your last reply, so i were marking it.
You are mistaken. I gave the correct answer in reply #1 and again several more times.You are also mistaken about your rudeness, which I have had enough of. The fact that you don't perceive it only makes it worse.
ejpa at 2007-7-21 10:19:14 >

ALL WHAT I HOPE TO GET, IS A PIECE OF CODE TO REALIZE THAT DREAM
"My router does not using post forwarding, so why eMule is still wokring, can you plz help with that?"
I am really not rude, but i am so angry of geting all that answers, as if they are answering another question...
TO BE MORE CLEAR, I NEED PIECE OF CODE FOR DOING P2P CONNECTION.
> I have machine with virtual IP 10.0.0.X, behind
> router with real IP let's say W,X,Y,Z, how can i ping
> this machine remotely?
As you described in in this thread and your previous one - you can not.
Connecting to something on the internet requires a public IP address.I would guess you do not have one of the those.
> My router does not using post forwarding, so how
> eMule still wokring, can you plz help with that?
Well either eMule doesn't have a working upload, or eMule is running on the machine with the public IP address, or you are using port forwarding. You clearly don't understand the concepts "firewall", "router", "private network" and so forth. You do not have the right to connect to whatever machine you wish; if a network administrator has correctly locked you out of his network, then nothing you can do will allow you access to the machines that he has protected.
So to answer your question, "How do I ping 10.x.x.x through public IP w.x.y.z?", you can't, unless you have some kind of VPN connection to w.x.y.z (maybe IPSEC or L2TP or something). You can not set up this VPN connection unilaterally; the network administrator must configure the machine w.x.y.z to allow the VPN connection from your machine/network.
Brian
> TO BE MORE CLEAR, I NEED PIECE OF CODE FOR DOING P2P> CONNECTION.Let me be clear, that sort of functionality uses a PUBLIC server.Do you have a public server?
Hi all,At the end i found solution!!!!!!!!!!The Hole-Punching.Thanks alot for all the help you provided.
> The Hole-Punching.One can only wonder what that is.
NAT hole-punching. The host behind the NAT box contacts a central server via UDP. In many NAT devices this causes the device to retain the state so that UDP datagrams sent back to that NAT port get forwarded to the inside host.Still needs a central server though.
ejpa at 2007-7-21 10:19:14 >

> NAT hole-punching. The host behind the NAT box
> contacts a central server via UDP. In many NAT
> devices this causes the device to retain the state so
> that UDP datagrams sent back to that NAT port get
> forwarded to the inside host.
>
> Still needs a central server though.
Is the OP using UDP though?