Questions tagged [nat-traversal]

NAT traversal is a general term for techniques that establish and maintain Internet protocol connections traversing network address translation (NAT) gateways.

NAT traversal is a general term for techniques that establish and maintain Internet protocol connections traversing network address translation (NAT) gateways.

SOCKS is the oldest NAT traversal protocol.

Read more about NAT traversal at Wikipedia..

72 questions
3
votes
2 answers

How would I locate the correct IP address of another computer on my LAN which is not publicly accessible?

I am writing a distributed Java app, but the networking side of things is stumping me. For some reason it's not working correctly. I think it's because the IP address I get through ipconfig /all is not accessible from outside the LAN. I appreciate…
Caffeinated
  • 11,982
  • 40
  • 122
  • 216
3
votes
0 answers

Tcp hole punching in C#

I have a globally accessible server that once connect to, sends the public endpoint of the host. I use two clients to connect it, and then use a TcpListener and 2 TcpClient on each client to try to connect to each other. I might be doing something…
Philippe Paré
  • 4,279
  • 5
  • 36
  • 56
3
votes
1 answer

How messengers (IM) works (listening)?

My task is to write a Messenger program for both internal and external staffs, I actually made it. However, I thing this is really not a good approach by using the client software keep "check-mesg" from server. So I think I am just simulating the IM…
Panda
  • 73
  • 1
  • 6
3
votes
1 answer

NAT Traversal using only free STUN and TURN servers in C#

I am trying to make an online game application, which communicates with another pc peer-to-peer over the Internet. Since both pc's are likely to be under NAT, and since I cannot afford an external server, I thought the only way is to use free STUN…
eivour
  • 1,678
  • 12
  • 20
2
votes
1 answer

Peer to Peer with NAT Traversal using WCF at Runtime

As the title says, is it possible to establish P2P connection between two systems which can get past NAT's. These two programs are connected to a WCF Service that identifies certain connected clients to other connected clients. The programs then…
topherg
  • 4,203
  • 4
  • 37
  • 72
2
votes
0 answers

UPnP auto select external port

I am trying to make an application that utilizes UPnP if necessary to open ports so incoming transmissions can be received. The thing is, I don't want to specify an external port (because one, the external port doesn't matter for the application to…
LRFLEW
  • 1,251
  • 3
  • 11
  • 19
2
votes
1 answer

Should empty string icecandidate be added by addicecandidate?

My question is about webrtc negotiation. There is a contradiction in many online tutorials and what is described in MDN. In MDN, it says link At the end of each generation of candidates, an end-of-candidates notification is sent in the form of an…
Sang
  • 4,049
  • 3
  • 37
  • 47
2
votes
0 answers

C/C++ UPNP NAT Traversal Winsock Implementation

I'm currently working with P2P Network over the Internet using C/C++ and Winsock2. With that, I want to do port forwarding with the router using UPNP (I know some router does not have UPNP, I just need to do this with this technology). I want to…
Techreator
  • 83
  • 8
2
votes
1 answer

Java Stunt and URI discovery

I'm working on a live video Java application, and have run into the common problem of NAT traversal - two computers can connect to each other on local network, but not when they're behind NATs. I've done some research and the easiest option to get…
2
votes
1 answer

Adobe AIR, URLRequest, and local ports

I'm looking at writing an app with Adobe AIR, but I wanted to figure out if this is feasible with the platform first. (Mostly new to Flash and AIR) What I would like to do is know ahead of time what local port a URLRequest will be using. If…
jocull
  • 20,008
  • 22
  • 105
  • 149
2
votes
1 answer

Can't set TCP source Port with boost asio

Usually it does not matter which source port you send data from as a client, but I still want to do it for some testing. So I tried to bind my client's socket to a specific port but even when I'm running client and server on my local machine (with…
jjstcool
  • 165
  • 2
  • 9
2
votes
2 answers

SIP INVITE Request Port getting messed up

Developing a NAT traversal solution, using resiprocate, it works fine, but often SIP INVITE get's failed particularly on cisco routers 1. SIP REGISTER is sent out by port 1024 Source: 107.108.188.26 Destination:107.108.188.52 User Datagram Protocol,…
Rohit
  • 6,941
  • 17
  • 58
  • 102
2
votes
2 answers

Running Java EE application on web-server

Following is a thread which has a SOCKET listening at port 15445. Whenever a Datagram packet is sent to it, it forwards back to the sender's address after adding a String(Reply from SERVER) in it. I want this code to run somewhere on the Internet,…
sathkur
  • 23
  • 4
2
votes
1 answer

TCP NAT-Traversal /- Punching with .NET

I write an application where it is essential to connect clients directly with each other and keep them connected. After doing some research using superior techniques (google) I found out that what I need can be achieved by doing NAT-Punching or…
Husky110
  • 723
  • 2
  • 10
  • 27
2
votes
2 answers

TURN server XOR-RELAYED-ADDRESS IP different from its own public IP

Suppose I am running a TURN server bound to a public IP (say 100.0.0.1). When the server creates a relay port for a create allocation request, is it ever the case that the server would send back an IP address that is different from whatever it is…
Chris
  • 2,786
  • 1
  • 28
  • 31