Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6160847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:23:36+00:00 2026-05-23T21:23:36+00:00

I have a general question that was probably answered somewhere here, but using search

  • 0

I have a general question that was probably answered somewhere here, but using search was not very productive. So, I will reask and if there’s a thread about that, please point me there. Thanks.

So, the general idea is:
We have two .NET-written clients that want to talk to each other without routing the whole traffic through the server. Even more, it is not necessary for both clients to be .NET based, but one will be in any case (another can be Objective-C, C++ on Unix etc.).

The idea is:

  1. The first client establishes the connection to some server so NAT remembers that the client is on address 10.0.0.1:1234 and the server is on address 70.0.0.7:4567. So, when the 70.0.0.7 will send the packet back to NAT, the NAT will know how to masquerade it to client.
  2. The second client establishes the connection to the same server so second NAT also remembers that the internal client on address 192.168.0.1:19234 is connected to server on address 70.0.0.7:7654 and will also be able to accept packets back for 192.168.0.1:19234
  3. Now we need to make the connection from 10.0.0.1:1234 to 192.168.0.1:19234.

Both c# clients can know about endpoints of each other (let’s say the server keeps the NATted addresses and they are: Client1 – 111.0.0.1:1111 and the Client2 – 222.0.0.2:2222).
What is necessary is – for Client1 to be able to send the packets directly to 222.0.0.2:2222 without calling Socket.Connect fist and for Client2 send packets to 111.0.0.1:1111 without calling Socket.Connect as well.

Is that possible to do with a .NET only without using any special libraries just using standard sockets etc.?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T21:23:37+00:00Added an answer on May 23, 2026 at 9:23 pm

    Sounds like you want to do something similar to UDP hole punching

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a bit of a javascript noob, but I have a general question that
I have one question but it can probably be answered by one of several
Probably a long question for a simple solution, but here goes... I have a
I have a general question that is rather open-ended (i.e. depends on platform, application
I have a general question about the way that database indexing works, particularly in
I have a specific question, that could use a general answer... When building Multi-Tier
I have a general question with regards to immutable collections. I will use Java
I'm working on an iphone app but this is probably a general question. I
Apologies or asking what is probably a very straightforward question, but I'm new to
i have a quite weird question which probably has no practical use but the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.