What I am trying to do is, send data from my PC(local IP) to another PC(private IP) in internet. I wrote a java program to send/receive messages with stun resolver.
Program:
Resolve stun and get public IP and port
Send message with same socket(resolve stun) to another program.
Receiving with same socket(resolve stun) in different thread.
We are sending data to each other's public IP/port resolved by stun. I'm not sure about other end but my network has Port restricted clone NAT
. Am I doing any wrong??
Note: NAT is tested. I communicated with a server and a local mobile device with stun resolve.
Edit
I don't have any firewall. I also stopped ufw
service.
System:
Ubuntu 14.04
Mac 10.10.3