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?
Yes.
Connecting two computers on a local network is the same as connecting via the Internet. The only differences are:
.
Jabber, ( Gtalk). jabber server Jabber. Jabber-net - .NET
, , , ..
TcpClient . NAT-ed . , IP- .
, , - . .
, .
, . , , , , .., . .
" " . - . -, .
.NET client listener IP-, . - IP- , .
, . , , . - , , .
, , , , , , , , , , TCP/IP .
, UPnP, , . , TCP/IP , . , , , . - - , , .
-/, . , . .
-, - IP- . PHP :
$Calling_IP_Address = $_SERVER['REMOTE_ADDR'];
. , - IP-, , , .