Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
At first Sorry because of my bad english.
I have two pc that are connected to internet via a wireless modem.
How can i configure the two pc,s to be able to connect to each other through ip address and port?
I want to write a c# program for server and client.
Thanks in advanced.
Posted

1 solution

Start with Google: a quick search for C# server/client chat gives a huge number of results: Google[^] - including a number of articles here.

I know it may not be a chat program you are trying to write, but the fundamentals are the same: connection and data transfer.
 
Share this answer
 
Comments
MJ MOUSAVI 5-Mar-14 4:48am    
I have the program, and also i set the ip for both of pc,s.
but when i want to connect to each other it is failed.
i think my configuration is not write.
OriginalGriff 5-Mar-14 5:23am    
First, check your IPs.
Have a look at this:
http://www.codeproject.com/Tips/358946/Retrieving-IP-and-MAC-addresses-for-a-LAN
If nothing else, it will tell you if the IP's you are using are correct - until you have that, you can't do anything.
Then, check your port - and make sure that it isn't blocked by a firewall on either PC.

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