Consider a phone which is connected to wifi with phones A, address as Dynamic Ip ex:192.168.0.34
and its listening over a server socket at port 7567,
In what way can i connect to that socket using any programming language if i have another phone B to connect that which is on public ip say 10.0.0.56
and i have the wifi router ip say ex 55.56.89.76
?
相关问题
- IPAddress.[Try]Parse parses 192.168 to 192.0.0.168
- What would prevent code running in a Docker contai
- How to run tcp and udp on a single port at same ti
- Docker-Compose: Can't Connect to Mongo
- Make Laravel Homestead Accessible via the Internet
相关文章
- RMI Threads prevent JVM from exiting after main()
- fsc.exe is very slow because it tries to access cr
- How many times will TCP retransmit
- boost:asio IPv4 address and UDP comms
- Writing an OS X kernel extension to implement Linu
- Virtual Box limit Bandwith on network [closed]
- Is ICMP a transport layer protocol?
- How to add negative filter in network tab of Chrom
It is not possible to connect directly to a client behind a NAT if you don't use port forwarding. But there is a technique called hole punching to open a port thrue a NAT.
From Wikipedia:
See also the questions related to this topic.