Quote:
,i means is there necessary to have a router or the ethernet cable?
Im not being sarcastic but I can't tell if this is a real question or a question made out of frustration. But in short, computers have to be connected in some way shape or form in order to communicate with each other. If you are doing this in 2 different physical locations then of course you'll need a router and either wifi or hard wired connections.
Given you didn't post code and I don't have access to your computer. Assuming the applications work then this is pretty straight forward.
You need to change your clients configuration XML to not point at itself. As you mentioned, 127.0.0.1 is the localhost/loop back IP address. If your chat server app has been moved to another computer then hopefully it would be obvious that it is no longer at the IP of 127.0.0.1.
Assuming
192.168.0.1 is the server IP ad address, you config file needs to look like this on the client machine
<endpoint address="net.tcp://192.168.0.1:9000/ChattingService"
binding="netTcpBinding" bindingConfiguration="" contract="ChattingInterfaces.IChattingService"
name="ChattingServiceEndPoint" kind="" endpointConfiguration="" />
It sounds as though you had done this but I think the other point where you are getting stuck is at the server firewall. Port 9000 isn't typically a conventional port so you will more than likely need to open this port on the servers firewall, whether this is at the router or windows firewall, you'll need to allow connections on port 9000 for tcp/udp.