|
-
Mar 19th, 2007, 01:15 AM
#1
Thread Starter
New Member
Help regarding Client Server Program????
im also working on chat server program to send messages or files to client.....at this time its working on LAN .but now i want it to extend to work on WAN so that i can send message to any other PC having my client program....just like another messanger(like Yahoo messanger)....if its possible than how?? in my chat server program im using WINSOCK and then i need to enter at the client side. IP of the Server PC to connect the client with the server then i can send messages and files . its only working on LAN .i want it to work on WAN. plzzzz help me ??
-
Mar 19th, 2007, 10:09 AM
#2
Re: Help regarding Client Server Program????
Any well-made client/server messenger should work on both LAN and internet, assuming the server can accept incoming connections outside of the LAN. If the server is behind a router/firewall you will need to open the necessary ports using Port Forwarding.
The basic concept of a messenger is:
Client sends message
Server receives message
Server broadcasts message to all other clients (or to only specific ones, for example, that are in the same chat room. or maybe to only one client if it is a private message)
What specific problem are you having?
-
Mar 19th, 2007, 01:35 PM
#3
New Member
Re: Help regarding Client Server Program????
i am trying the same thing, just basic winsock stuff... i can get the program to work on the local network but not other computers over the internet. The server will only listen on the local ip (ie 192.168.1.103) but a friend cannot connect from his/her house throught the external ip.
-
Mar 20th, 2007, 12:55 PM
#4
Re: Help regarding Client Server Program????
 Originally Posted by nickurch252
i am trying the same thing, just basic winsock stuff... i can get the program to work on the local network but not other computers over the internet. The server will only listen on the local ip (ie 192.168.1.103) but a friend cannot connect from his/her house throught the external ip.
You need to configure your router so connections made on that port will be directed to your computer.
192.168.1.103 is NOT an internet IP address, it is a local/LAN IP address. To get your "real" IP you need to get it from a remote web server, for example:
www.showmyip.com - That is the one you will give to your friend.
Then you can also sign up with www.no-ip.com to get your own free DNS name. This way you can just give your friends your DNS name, ie: "mycomputer.no-ip.com" and it will automatically point to your IP address.
If they are unable to connect, then you need to open the ports on your router. You should be able to do that by clicking one of these:
http://192.168.1.1
http://192.168.0.1
It depends on your router. Once you login you can configure port forwarding.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|