Results 1 to 5 of 5
- 09-03-2009, 07:53 PM #1
Member
- Join Date
- Aug 2009
- Posts
- 51
- Rep Power
- 0
Socket Communication on different networks
Hi
I want to write an application where the server and the client are running on different network. It's not an applet but an application. The problem is that I want the server to run on a different network and the client to run on a different network something that happens with all the messengers. Can any one help me.
Thanks
Sachin
- 09-03-2009, 09:01 PM #2
The client tries to make a connection to an IP and port. It doesn't care if it's on the same network or out somewhere on the internet.
The server listens for connections and communicates along a Port on the machine it is running on. It also doesn't care where it comes from.
This all has to do with your network router settings. You will need to find a way to figure out your public ip address, is it static? or dynamic? or do you have a domain?, so that your client will know where to connect, also you will need to have your router port-forward the port you want to use to the machine that is running your server.Last edited by mrmatt1111; 09-03-2009 at 09:04 PM.
My Hobby Project: LegacyClone
- 09-03-2009, 09:08 PM #3
Member
- Join Date
- Aug 2009
- Posts
- 51
- Rep Power
- 0
Thanks Matt
So I guess then I have to configure my router????
- 09-03-2009, 09:49 PM #4
Indeed :)
Port forwarding
What is my IP
And if you have a dynamic ip: Dynamic DNSMy Hobby Project: LegacyClone
- 09-05-2009, 02:32 AM #5
Similar Threads
-
Communication between two Jars
By Gijava in forum Advanced JavaReplies: 1Last Post: 06-26-2009, 04:59 PM -
append response to the request from Socket and write to another socket
By vaibhav_singh_vs@yahoo.co in forum NetworkingReplies: 3Last Post: 04-17-2009, 07:02 PM -
communication between classes
By willemjav in forum New To JavaReplies: 10Last Post: 09-01-2008, 10:08 PM -
Jar and War communication in an Ear
By madanmohanp in forum Advanced JavaReplies: 1Last Post: 08-02-2008, 01:39 PM -
Communication with c++
By mathias in forum Advanced JavaReplies: 1Last Post: 08-07-2007, 06:47 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks