Click here to Skip to main content
15,906,341 members
Please Sign up or sign in to vote.
1.75/5 (3 votes)
See more: (untagged)
I want to run this Tcp/Ip chat application in c# in external IP?right now,Server is on external ip and client side on local ip's?by this, i m n't able to see all online users.as public ip's of all local m/c's have the same ip's?
Posted

All clients will have the same IP address as they are behind a NAT router, even if you knew the local IP addresses of the clients it would not help you as those addresses make no sense in the context of the network the server is on.
To see all online users the clients need to connect to the server and keep the connection OPEN until they are finished with it, not after sending a single message.
If this doesn't help please fix your question so that it makes some sense as far what you are trying to achieve.
 
Share this answer
 
the best is to use SQL dataBase for your program to see hu is on line still you nide to hev database for your users with GUID
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900