Click here to Skip to main content
15,885,653 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to send udp packets from public Ip to local Lan Machine which can able to access that pulblic Ip and all ports.
Posted

Read about Port forwarding. If the connection should be established from the public IP and the router which performs the forwarding uses a dial-up connection with dynamically assigned IP addresses, read also about Dynamic DNS.

After setting up port forwarding and - if necessary - dynamic DNS, packets can be send like for any other UDP connections.

Connect to the public IP / domain of your router (the dynamic DNS name when using it) using the configured public port. The router will forward the packets to the configured local IP and port of your local machine.
 
Share this answer
 
Agree with Jochen Arndt. I guess you have to read also about NAT.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900