 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Mustafa Korkmaz Guest
|
Posted: Mon Mar 01, 2004 9:13 am Post subject: TCP connection with two local machine these are under differ |
|
|
for example:
Client1: connecting to internet via Server(IP:200.123.20.30).
Client2: connecting to internet via Server(IP:192.103.23.11).
Can Client1 connect to client2 with TCP? client1 knows internet ip of client2.
client2 listening TCP port:34567
I think it is not posible without port forwarding...But I am not sure..
is it posible to solve this problem with software?
with different protocol or VPN or...
I dont know how establish VPN connection with software?
MS Messanger uses peer to peer TCP connection for web camera communication..
How does MS Messanger accomplish this?
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Mar 01, 2004 9:47 am Post subject: Re: TCP connection with two local machine these are under di |
|
|
"Mustafa Korkmaz" <mkorkmaz42 (AT) hotmail (DOT) com> wrote
| Quote: | Client1: connecting to internet via Server(IP:200.123.20.30).
Client2: connecting to internet via Server(IP:192.103.23.11).
|
Are those the IPS of the servers, or the clients? Please clearify.
| Quote: | Can Client1 connect to client2 with TCP?
|
If Client1 has a direct route to Client2, then yes. Otherwise, Client2 will
have to connect to Client1 instead.
| Quote: | client1 knows internet ip of client2.
|
If Client2's IP is publically available, yes Client1 can connect to it.
| Quote: | I think it is not posible without port forwarding...
|
That depends on your actual network configuration. You need to clearify
what that actually is.
| Quote: | MS Messanger uses peer to peer TCP connection for
web camera communication.. How does MS Messanger
accomplish this?
|
By establishing direct connections, in either direction. Either Client1
connects to Client2, or else Client2 connects to Client1 instead. Once a
connection direction is negotiated and established, they can exchange data
between each other in both directions on the same connection.
Gambit
|
|
| Back to top |
|
 |
Mustafa Korkmaz Guest
|
Posted: Mon Mar 01, 2004 11:10 am Post subject: Re: TCP connection with two local machine these are under di |
|
|
Client1 is under the Network A and Client2 is under the Network B.
Each local machines those under the network A are connecting to Internet with same IP.
They share one Internet connection.
Each local machines those under the network B are connecting to Internet with same IP.
They also share one Internet connection.
Client1 or Client2 can connect to each other with TCP?
client1 and client2 know Internet IP of each other.
I think
If Client2 were directly connect to Internet, Client1 would be able to connect Client2.
But both of them are not directly connect to Internet.
"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote:
| Quote: |
"Mustafa Korkmaz" <mkorkmaz42 (AT) hotmail (DOT) com> wrote in message
news:4042feba (AT) newsgroups (DOT) borland.com...
Client1: connecting to internet via Server(IP:200.123.20.30).
Client2: connecting to internet via Server(IP:192.103.23.11).
Are those the IPS of the servers, or the clients? Please clearify.
Can Client1 connect to client2 with TCP?
If Client1 has a direct route to Client2, then yes. Otherwise, Client2 will
have to connect to Client1 instead.
client1 knows internet ip of client2.
If Client2's IP is publically available, yes Client1 can connect to it.
I think it is not posible without port forwarding...
That depends on your actual network configuration. You need to clearify
what that actually is.
MS Messanger uses peer to peer TCP connection for
web camera communication.. How does MS Messanger
accomplish this?
By establishing direct connections, in either direction. Either Client1
connects to Client2, or else Client2 connects to Client1 instead. Once a
connection direction is negotiated and established, they can exchange data
between each other in both directions on the same connection.
Gambit
|
|
|
| Back to top |
|
 |
Martin James Guest
|
Posted: Mon Mar 01, 2004 1:14 pm Post subject: Re: TCP connection with two local machine these are under di |
|
|
"Mustafa Korkmaz" <mkorkmaz42 (AT) hotmail (DOT) com> wrote
| Quote: |
Client1 is under the Network A and Client2 is under the Network B.
Each local machines those under the network A are connecting to Internet
with same IP.
They share one Internet connection.
Each local machines those under the network B are connecting to Internet
with same IP.
They also share one Internet connection.
Client1 or Client2 can connect to each other with TCP?
client1 and client2 know Internet IP of each other.
I think
If Client2 were directly connect to Internet, Client1 would be able to
connect Client2.
But both of them are not directly connect to Internet.
|
If they share a connection, the server/router/whatever that connects them to
the Internet knows where they are & should be able to route their segments
correctly without the Internet/ISP/whatever being involved..... I think....
Why do you have two such widely different network addresses?
Rgds,
Martin
|
|
| Back to top |
|
 |
Mustafa Korkmaz Guest
|
Posted: Mon Mar 01, 2004 4:19 pm Post subject: Re: TCP connection with two local machine these are under di |
|
|
Network A is in America.
Network B is in Germany.
User_XX wants to connect User_YY.
USer_XX is in America. User_YY is in Germany.
User_XX's computer is any computer that under Nerwork A.
User_YY's computer is any computer that under Nerwork B.
User_XX connects to Internet via one computer that always connected to Internet.All other computers these under Network A are connecting to Internet via same machine.All computers these under network A share one connection.
User_YY connects to Internet via one computer that always connected to Internet.All other computers these under Network B are connecting to Internet via same machine.All computers these under network B share one connection.
User_XX and User_YY want to connect each other with TCP.
Both of them know Internet IP address of each other.
User_XX has Delphi1.exe program.
User_YY has Delphi2.exe program.
Delphi1 program is TCP server program. Delphi2 program is TCP client program. Can delphi2 connect to Delphi1?
I can not explain more clearly than this...
"Martin James" <mjames_falcon (AT) dial (DOT) pipex.com> wrote:
| Quote: |
"Mustafa Korkmaz" <mkorkmaz42 (AT) hotmail (DOT) com> wrote in message
news:40431a1d$1 (AT) newsgroups (DOT) borland.com...
Client1 is under the Network A and Client2 is under the Network B.
Each local machines those under the network A are connecting to Internet
with same IP.
They share one Internet connection.
Each local machines those under the network B are connecting to Internet
with same IP.
They also share one Internet connection.
Client1 or Client2 can connect to each other with TCP?
client1 and client2 know Internet IP of each other.
I think
If Client2 were directly connect to Internet, Client1 would be able to
connect Client2.
But both of them are not directly connect to Internet.
If they share a connection, the server/router/whatever that connects them to
the Internet knows where they are & should be able to route their segments
correctly without the Internet/ISP/whatever being involved..... I think....
Why do you have two such widely different network addresses?
Rgds,
Martin
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Mar 01, 2004 7:12 pm Post subject: Re: TCP connection with two local machine these are under di |
|
|
"Mustafa Korkmaz" <mkorkmaz42 (AT) hotmail (DOT) com> wrote
| Quote: | Client1 is under the Network A and Client2 is under the Network B.
Each local machines those under the network A are connecting to
Internet with same IP. They share one Internet connection.
Each local machines those under the network B are connecting to
Internet with same IP. They also share one Internet connection.
|
Then what you ask for is not doable given the configuration you have
described, unless at least one of the networks is performing port
forwarding. Both clients are behind networks and both have private IPs that
are not directly accessible. Thus the Internet router itself, which has the
public IP, not the clients, has to sit in between the clients and direct
data packets back and forth between the public network (the Internet) and
the private network.
The only way clients of different networks will be able to communicate at
all is via an intermediary server that sits between them. That is how most
IM programs work nowadays - there is a central server on the public network
that all clients connect to, and all messages pass through the server. Any
direct connections between clients have to be negotiated first to see if
such connections are even possible before actually attempting them, and then
the negotiation dictates who connects to whom based on who is more
accessible.
| Quote: | Client1 or Client2 can connect to each other with TCP?
client1 and client2 know Internet IP of each other.
|
Not in the scenerio you have described, unless at least one of the networks
is doing port forwarding.
Gambit
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Mar 01, 2004 7:16 pm Post subject: Re: TCP connection with two local machine these are under di |
|
|
"Mustafa Korkmaz" <mkorkmaz42 (AT) hotmail (DOT) com> wrote
| Quote: | User_XX and User_YY want to connect each other with TCP.
Both of them know Internet IP address of each other.
User_XX has Delphi1.exe program.
User_YY has Delphi2.exe program.
Delphi1 program is TCP server program. Delphi2 program is TCP
client program. Can delphi2 connect to Delphi1?
|
Only if User_XX's Internet router is performing port forwarding to directly
all packets for a given port back and forth to/from User_XX's machine.
Otherwise no.
Gambit
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|