Connecting 2 computers with .NET

I am working on an online version of Connect 4, and I want to be able to connect 2 computers together.

I have some knowledge about creating networks between computers of the TcpClient and Listener classes, however, as far as I know, this work only works on a computer connected to the same network (LAN)

I want to be in another part of the Earth and play with connection 4 with my younger sister, no matter what LAN we live in.

Is it possible?

+5
source share
7 answers

Yes.

Connecting two computers on a local network is the same as connecting via the Internet. The only differences are:

.

+1

Jabber, ( Gtalk). jabber server Jabber. Jabber-net - .NET

, , , ..

+2

TcpClient . NAT-ed . , IP- .

, , - . .

+1

, .

, . , , , , .., . .

" " . - . -, .

+1

.NET client listener IP-, . - IP- , .

, . , , . - , , .

, , , , , , , , , , TCP/IP .

, UPnP, , . , TCP/IP , . , , , . - - , , .

0

-/, . , . .

0

-, - IP- . PHP :

$Calling_IP_Address = $_SERVER['REMOTE_ADDR']; 

. , - IP-, , , .

.

0

All Articles