Click here to Skip to main content
Rate this: bad
good
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 23: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
0 OriginalGriff 390
1 Sergey Alexandrovich Kryukov 329
2 Afzaal Ahmad Zeeshan 244
3 BillWoodruff 210
4 Maciej Los 192
0 OriginalGriff 5,560
1 DamithSL 4,476
2 Maciej Los 3,942
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2014
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