Questions tagged [nat]

Network Address Translation (NAT) is a method of connecting multiple computers to the Internet (or any other IP network) using one IP address.

Network Address Translation (NAT) is a method of connecting multiple computers to the Internet (or any other IP network) using one IP address.

NAT is also known as IP masquerading.

RFC 2663 - IP Network Address Translator (NAT) Terminology and Considerations

1160 questions
57
votes
4 answers

Connecting P2P over NAT?

I started to explore the option of connecting with other using a p2p connection, so I coded a simple socket program in JAVA for android devices in which the users can share simple messages p2p (I didn't have any idea about NAT then). I got to know…
user3439988
  • 593
  • 1
  • 6
  • 9
47
votes
9 answers

teamviewer-like tool for ssh?

I want to access my home computer from work through SSH, but the problem is my home computer is behind a NAT router (which I don't have access to). Because my work computer has a CentOS installed and is behind a proxy, I couldn't use TeamViwer (TV…
Claudiu
  • 2,124
  • 4
  • 26
  • 36
36
votes
5 answers

TCP Hole Punch (NAT Traversal) Library or something?

I want to do TCP Hole Punching (NAT Traversal) in C#. It can be done with a rendezvous server if needed. I found http://sharpstunt.codeplex.com/ but can not get this to work. Ideally i need some method which i give a Port Number (int) as parameter…
TobiHeidi
  • 1,201
  • 2
  • 14
  • 23
32
votes
1 answer

How NAT traversal works in case of peer to peer protocols like bittorrent.

I know about NAT traversal and about STUN, TURN and ICE and its use. I want to know whether these are implemented in peer to peer file sharing application like bittorrent. Whether trackers facilitate peers behind NATs to communicate with each other…
user1887464
  • 533
  • 2
  • 6
  • 11
32
votes
10 answers

VirtualBox port forwarding not working with NAT adapter

I'm trying simple port forwarding with VirtualBox and it appears VirtualBox.exe is listening on the host to the port, but not actually forwarding the connection to the guest. I've tried on multiple ports, and I've restarted VirtualBox several times.…
Roberto Olivares
  • 1,053
  • 1
  • 11
  • 19
27
votes
5 answers

UDP hole punching implementation

I am trying to accomplish UDP hole punching. I am basing my theory on this article and this WIKI page, but I am facing some issues with the C# coding of it. Here is my problem: Using the code that was posted here I am now able to connect to a remote…
brooc
  • 448
  • 2
  • 6
  • 10
26
votes
1 answer

Is pwnat still an applicable solution

I need a solution for NAT traversal to transmit RDP data across the internet. I came across the following tool and it's really amazing - pwnat. I have tried it with the two different machines behind different router, but i am unable to make it work…
sudesh
  • 973
  • 1
  • 10
  • 19
25
votes
2 answers

How to simulate different NAT behaviours

I am working on Holepunching using UDP and UDT. For the final testing I need to test the application on different NAT types (Symmetric,full cone,restricted cone, port restricted NATs). Is there any method I can simulate these? What I expect here is…
user739711
  • 1,842
  • 1
  • 25
  • 30
24
votes
6 answers

Why does a AWS NAT Gateway require an ElasticIP?

While creating NAT Gateway an Elastic IP Address is created in AWS. The AWS documentation (1) also mentions the same. Why is an Elastic IP Address required for NAT Gateway?
Praveen Sripati
  • 32,799
  • 16
  • 80
  • 117
22
votes
5 answers

How to make two android devices to communicate through TCP

We want to establish TCP/IP connection between two android devices. For now we thought that it would be simpler if we make the connection device to device. So there is no server that is between the two phones. Most of the time (if not always) one…
Luben
  • 221
  • 2
  • 3
22
votes
2 answers

How is source port for HTTP determined? Is there ever collision in NAT?

I know that when a HTTP request is made, packets are sent from a seemingly-random high-numbered port (e.g. 4575) on the client to port 80 on the server. Then the server sends the reply to the same high-numbered port, the router knows to route that…
Ram Rachum
  • 84,019
  • 84
  • 236
  • 374
21
votes
1 answer

How to handle ssh host key verification with 2 different hosts on the same (but changing) IP address?

I have 2 ssh servers behind a nat firewall at a location that changes its wan IP every day. They are always at the same wan IP address on a given time but on different ports. I am connecting to server A this way: ssh -p 22001…
user89021
  • 14,784
  • 16
  • 53
  • 65
21
votes
3 answers

STUN, TURN, ICE library for Java

I need to establish a P2P UDP and TCP Connection between two Users. Both of them are behind a NAT. A little research leads me to STUN, TURN and ICE. Is there any Java solution (library) except jSTUN which seems to work only on UDP. And TURN, ICE is…
Hemeroc
  • 2,176
  • 5
  • 23
  • 29
20
votes
6 answers

How do two computers connect to same external address through NAT?

If I have two internal computers connecting to the same external IP address through a NAT router, how is the router able to get the traffic to the correct internal computer? It is my understanding that NAT forwards incoming packets to the computer…
user241146
  • 203
  • 1
  • 2
  • 5
19
votes
1 answer

Can a single NAT Gateway span across multiple AZ?

When I configure a NAT Gateway, I will have to select a subnet, hence to my understanding, one NAT Gateway for one Subnet which falls under one Availability Zones. Then I saw the below statement If you have resources in multiple Availability Zones…
Isaac
  • 12,042
  • 16
  • 52
  • 116
1
2 3
77 78