I have a client behind NAT and a server who is accessible by this computer
something like this :
local ip external ip IPe
external port Pe
C --------- | ----------------- S
NAT
I want S to know C IPe and Pe used to transmit between those two
how can i do it ?
I'm using python
If S is the server then just do
conn, addr = s.accept()
Else if C doesn't know anything about S Here is a solution for you problem: You should use an intermediate server that will resolve the communication problem for you.
Requirement:
NOTE: the secret is that both C and S knows the server.