Click here to Skip to main content
12,254,527 members (67,766 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C++ C Java
How to send udp packets from public Ip to local Lan Machine which can able to access that pulblic Ip and all ports.
Posted 4-Dec-12 22:55pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

Agree with Jochen Arndt. I guess you have to read also about NAT.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160426.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100