Punit Jain wrote:
and also i want to know how do i access any private network by port forwarding??
You talk to the person in charge of that private network and ask them to configure port forwarding in their network so that you can access it.
Punit Jain wrote:
You talk to the person in charge of that private network and ask them to configure port forwarding in their network so that you can access it.
if possible can you please tell me how to do this, or any resource for this??
Punit Jain wrote:okay..
but can i start to read about this??
how and from where??
that makes me to start it again but later.
Thank you
Did you read the Wikipedia article I linked? (May have been in your other thread, I don't recall.)
Did you try googling for more information on port forwarding?
Did you try doing any research on network security?
And finally, take a step back: What are you actually trying to accomplish, and for what purpose?
Punit Jain wrote:
Did you read the Wikipedia article I linked? (May have been in your other thread, I don't recall.)
yes i read this, but this saying the concept of port forwarding only, not much..
the router is configured to accept and connect a request on a port -- to another machine within the private network (and use the same or different port).
i just need to install my client files/installer, and i will be able to communicate with that machine.
Punit Jain wrote:
i m trying to creating a chat application,
in which if i want to communicate any machine, which is connected to internet or lan, i just need to install my client files/installer, and i will be able to communicate with that machine.(not only with a single machine, any machine which is connected to the internet or lan).
Why? For educational purposes, or other?
Punit Jain wrote:
you mean to say i need to assign a port in my router configuration in port forwarding, and i also need to assign the same to others router, whom i want to connect??
i mean i assign a port number in my router and also give the server ip address, and the same thing i need to do in others router, isn't it??
Punit Jain wrote:
Why? For educational purposes, or other?
yes actually in this semester i got some part of java networking in my java syllabus, so i m trying to implement it, and trying to learn more.
so then all you need is to set up your own machine as a server (but be careful when configuring your router), and tell your friends about it so they can connect to you.
And when you say, "I also need to assign the same to others' routers", what really happens is that you ask them to configure their routers to forward router port X to port Y on the machine that's running your app. It's up to them whether they actually want to do that or not. I certainly wouldn't use an app that required me to do it.
So you need to decide which architecture you want--pure peer-to-peer, or relay server. And regardless of which approach you choose, you'll need at least one machine that is publicly reachable.
Punit Jain wrote:
Jeff Verdegan wrote:
And when you say, "I also need to assign the same to others' routers", what really happens is that you ask them to configure their routers to forward router port X to port Y on the machine that's running your app. It's up to them whether they actually want to do that or not. I certainly wouldn't use an app that required me to do it.
so what you would use??
Do you ever use Skype, or AOL Instant Messenger, or GoogleTalk, or Yahoo Messenger? None of those have you opening a connection to the computer of the person you're talking to.
Punit Jain wrote:
Do you ever use Skype, or AOL Instant Messenger, or GoogleTalk, or Yahoo Messenger? None of those have you opening a connection to the computer of the person you're talking to.
yes actually i was asking, how the will do??
i mean how they are designed or developed??
Okay, so then all you need is to set up your own machine as a server (but be careful when configuring your router), and tell your friends about it so they can connect to you.
Punit Jain wrote:okay, one last thing.
Okay, so then all you need is to set up your own machine as a server (but be careful when configuring your router), and tell your friends about it so they can connect to you.
is this the only thing which i can do now?
Do you have access to any other machine that meets this requirement?
Punit Jain wrote:
Do you have access to any other machine that meets this requirement?
no, i have four machines connected to same network, but all have private ip, but my network ip is public.
but all systems(4 machines) that are connected to the routers have private ip's.
Punit Jain wrote:i am little bit confuse here.
can i take my networks ip address, although it's public.
right now i am taking my machine ip address that is private.
so instead of this can i take my router ip?
Punit Jain wrote:
Jeff Verdegan wrote:
so then all you need is to set up your own machine as a server (but be careful when configuring your router), and tell your friends about it so they can connect to you.
okay this i can do now.
Jeff Verdegan wrote:If I'm using an app where I communicate with another computer, it has to be an app where I initiate the connection from my computer to the server. What you're talking about here is that your users have to let their computers operate as the server to receive connection requests. This is both insecure and inconvenient.
Do you ever use Skype, or AOL Instant Messenger, or GoogleTalk, or Yahoo Messenger? None of those have you opening a connection to the computer of the person you're talking to.
Also, some of these chat systems check to see if the router support (and have enabled) UPnP -- and if do, will request that the router do a port forward programmatically.
Punit Jain wrote:
Also, some of these chat systems check to see if the router support (and have enabled) UPnP -- and if do, will request that the router do a port forward programmatically.
you mean to say i have to first listen to that port by opening server socket, and than i have to write into that, using socket. isn't it??
Punit Jain wrote:
Also, some of these chat systems check to see if the router support (and have enabled) UPnP -- and if do, will request that the router do a port forward programmatically.
you mean to say i have to first listen to that port by opening server socket, and than i have to write into that, using socket. isn't it??
Jeff Verdegan wrote:No, it's not that simple. When you see a new term like UPnP, rather than asking the forum how it works, it's time for you to do off and do some research on your own. However, before you even attempt anything like UPnP, I strongly urge you to first take the smaller, simpler step of getting it working by manually setting up port forwarding. Otherwise, you'll be trying to tackle too many new things at once, and when something doesn't work, you won't know where to look.
This is good advice that applies to all development projects: Work on one thing at a time, and get the simple parts working before adding more complexity.
Punit Jain wrote:yes i just checked, my router supports UPnP..
okay i m going to o some research..
can you suggest me something to read, as a beginner?
Thank You..
Don't get me started about those stupid light bulbs. |