473,396 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

UDP hole punching P2p

HI,
I am implementing UDP Hole Punching in C#.To have communication between two peer in the internet one should know the public IP address.I have developped application which acts as both client and server and installed in both machine.I use 192.45.20.10 and 50006 (local ip and port)to contact STUN Server 3478. I am able to get Public IP and port say 127.34.10.45:3456(machine1) and 145.167.10 and 4567 (nachine2).as explained in bryan ford white paper on UDP hole punching I supposed to use the same loacl end point to connect to other peer.but this failing AS IT REPORTS ADDRESS REUSE.If I change the port then request than NAT will change the public IP. In that case other peer won't be able to connect.
here instead of rendezvous server, I am manually supplying public ip and port to both application to connect.

Please suggest how to implement this UDP hole punching.

thanks
Aug 30 '10 #1
1 5600
Oralloy
988 Expert 512MB
Since you're using UDP, you should probably just use sendto and recvfrom using the same base port.

You should only have to create the socket and bind it once.

Or am I dropping a ball here?

Cheers!
Aug 30 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

32
by: Chung Leong | last post by:
Building web sites with PHP is easy. Building secured web sites--in any language--is hard. The end result is many PHP sites with security issues. I thought therefore it would be a good idea to put...
6
by: Phil Powell | last post by:
I might have found a rather bad hole in PHP OO design for Versions 4.3.2 involving static class-level rendering, like in Java. Please read my thread at...
15
by: Philippe C. Martin | last post by:
Hi, I have a python script I wish to call from various browsers (IE; Mozilla, Firefox ..) on Windows & Linux. I read that IE had the capability to embedd Python scripts, but what about the...
5
by: LL | last post by:
Hi, If Assign ASP.NET User as db_owner to the login user, can possible the login user do some bad thing to my db system? Thanks... sp_addrolemember 'db_owner', <ASP.NET User Account>"
4
by: Patrick Olurotimi Ige | last post by:
Huge security hole in .NET: Java creator http://www.zdnet.com.au/news/security/0,2000061744,39179932,00.htm *** Sent via Developersdex http://www.developersdex.com *** Don't just participate...
19
by: Blair P. Houghton | last post by:
I'm just learning Python, so bear with. I was messing around with the webbrowser module and decided it was pretty cool to have the browser open a URL from within a python script, so I wrote a...
3
by: Chuck | last post by:
Hello, Does Dotnet 2.0 Framework still have the security hole that Dotnet 1.1 Framework had regarding HTTP-Post method for web services? TIA
2
by: PSiegmann | last post by:
Hi newsgroup. I ask, can a buggy ASP.net app grant root access to the server? Or are there built-in mechanisms that prevent this? Let's say, I have a bug in my application, that under certain...
0
by: John Nagle | last post by:
urllib has a "hole" in its timeout protection. Using "socket.setdefaulttimeout" will make urllib time out if a site doesn't open a TCP connection in the indicated time. But if the site opens...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.