Click here to Skip to main content
11,716,249 members (86,900 online)
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 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
0 Sergey Alexandrovich Kryukov 634
1 Maciej Los 385
2 Richard MacCutchan 280
3 F-ES Sitecore 245
4 OriginalGriff 175
0 Sergey Alexandrovich Kryukov 1,029
1 Maciej Los 464
2 Richard MacCutchan 430
3 CHill60 415
4 OriginalGriff 415


Advertise | Privacy | Mobile
Web04 | 2.8.150901.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2015
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