sravan_reddy001 said:
I have the Server and Client programs...
those work well on my system...
the problem is when i run the server and client on two different
system that are not in LAN and connected to INTERNET its not
working...
how can i resolve IP sharing (192.168.1.10 shown by IPCONFIG) and
(122.169.150.97) by
http://whatismyipaddress.com/
how can resolve that problem..
In order for the client to connect to the server, the server must have an
internet-visible IP number. Your situation isn't clear to me, but I would
guess that you are running a server on a machine whose local IP is
192.168.X.X This class of address is not used on the Internet directly but
is used on LANs. That is, there are thousands of machines with IP address
192.168.1.10. Like them, your LAN is behind a NAT (Network Address
Translation) router that has a true internet address (122.169.150.97). The
NAT router is probably built into your cable or DSL modem and it translates
the outgoing packets to appear to come from the router and the incoming
packets to direct them to the appropriate machine.
The primary issue with this configuration is that your server itself has no
internet-visible IP. A client looking for 192.168.* will not find it and
any client looking for 122.* will find only your router, not your local
machine (which generally is a good thing.) The solution is to configure
your router so that it forwards a particular port from itself to some
machine inside your lan. For example, if your server runs on port 7000,
have your router open up 7000 and forward it to 192.168.1.10.
Keep in mind that as soon as you make a service available on the Internet it
can be subject to external connection requests by the thousands--be sure
your network is secure. Opening up many ports is simply asking for trouble.
Also, making your server accessible to the internet may violate your service
contract with your ISP, especially if the traffic is very high. Some ISPs
block will block you from common ports like 80.
If you are also trying to get the server to contact the client, the process
is very similar but I would strongly suggest you rethink your protocol as
doing so is rarely ever needed and places heavy burdens on the client.
Matthew Humphrey
http://www.iviz.com/