nat

How to do port forwarding on VMWare Player 14.1.2 (Ubuntu 18.04 guest, Windows 10 host)?

久未见 提交于 2019-12-06 10:17:27
问题 I have a VMWare Player (14.1.2 build-8497320) running a Ubuntu 18.04 guest on a Windows 10 host. The Ubuntu guest has a LAMP stack that runs a few web applications. I am using NAT to connect the Ubuntu guest to the Windows host's network. I can access these applications by using the local IP address of the guest (e.g., http://192.168.80.128/mediawiki) from my Windows host. But I want to access it like so from my Windows host: http://localhost/mediawiki. I think this should be possible if I

Web Application Nat Traversal

走远了吗. 提交于 2019-12-06 08:36:51
问题 We are deploying web applications in java using tomcat on client machines across the country. Once they are installed, we want to allow a remote access to these web applications through a central server, but we do not want our clients to have to open ports on their routers. Is there a way to tunnel the http traffic in a way that the central server can access the web application that is behind the firewall ? The central server has a static ip address and we have full control over it. We don't

About Network Address Translation (NAT)?

纵饮孤独 提交于 2019-12-06 07:59:34
问题 Just curious about a particular scenario of NAT. Let's suppose we have 4 computers sharing a global IP address under the NAT. I understand that the NAT box keeps an internal record to know which computer to forward requests to. But let's say on computer #2 I'm trying to download a file. And let's say on computer #1, #3, and #4, I'm just browsing the web normally. When the browser initiates a TCP connection to get that file, how does it know which computer to give it to? I mean like, each of

Trying to get NAT's external IPAddress with INATExternalIPAddressCallback in C#

久未见 提交于 2019-12-06 07:55:29
问题 How do I get the external IP Address of a NAT using the windows library? I am trying to find any information on INATExternalIPAddressCallback, but have only found one example in C++ using unavailable interfaces to C#. Any guidance would be much appreciated. -Karl 回答1: Sorry, that I don't answer with an existing API from Windows that uses the UPNP service, but it migh help you You could also use a STUN-server on the internet, there are many open ones, every VOIP provider has one. http://en

how to Redirect two URL's on same port to two diff IP's internally

假如想象 提交于 2019-12-06 07:28:16
These two machines A and B are NAT behind 1 IP address. Url.xyz.com goes to machine A on port 80 served by apache 2.2 and url2.xyz.com is supposed to go to machine B on port 80 served by apache 2.2 on that machine i have machine A taking all inbound port 80 packets from my gateway...fyi at one point i had apache on machine A setup to do this, but now i am struggling to regain the good config. I am using a diff OS on a diff Machine B for good reasons.... i recall setting up virtual server url2.xyz.com in apache 2.2 on machine A using port 80, then setting the host file on machine A and B to

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

自古美人都是妖i 提交于 2019-12-06 05:03:51
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 and TURN server, such as Numb . However, after some research, I couldn't figure out how to use those servers to make a connection. Is it really possible to use only those servers to do it? If it is, how would you do that? Or is there an easier way of doing that? I can use either UDP or TCP for this. Take a look at the Internet Gateway Device Protocol

UDP over Internet. How does it work?

笑着哭i 提交于 2019-12-06 04:54:45
问题 As I am programming a network chat (java, but should not make a difference for the question), and wanted to use UDP, I ran into the problem of it not working over the internet. After a little research I found out that you have to have port forwarding for the specific port activated. So now it comes to my question: Does UDP work over the Internet in a not configurable way? For example, if I would program a whole Network Game would it make sense to use UDP? Or would I require the Player to

UDP/TCP hole punching vs UPnP vs STUN vs?

独自空忆成欢 提交于 2019-12-06 02:26:35
问题 I try to make a P2P Program and need help with getting through the NAT of the clients. I have read many questions here on stackoverflow, but i never got what the drawbacks and benefits of all the Methods to get through a NAT are. How many routers support which methods? Which methods are commonly used by the big companies? (BitTorrent, TeamViewer,...) What are the drawbacks/benefits of the three methods i listed and which else exists? 回答1: UPnP requires software support in your router. Even

TCP hole punching on iPhone

孤街醉人 提交于 2019-12-06 01:14:17
问题 I have done a bit of reading, and although I'm new to iPhone networking I was wondering if a TCP hole punch is possible for connecting two iPhones through NAT. I also read some helpful things about uPnP and hairpinning but I'm not to familiar with those at all, so if anyone has any ideas as to whether or not this is possible. My goal is to be able to connect multiple iPhones over a large range (so it may be better to switch to some type of GPSR) but for now I'm only working with two iPhones

Port Forwarding

落花浮王杯 提交于 2019-12-05 20:58:20
问题 I have a simple requirement of a software level port forwarding/tunnelling of socket based communication. I have a source server and port using Sockets. This is a java program which works both in windows and linux and this is irrelevant. I have devices which keep sending data to this port. There may be a bi-directional communication I want to redirect this data to another remote server and port. So for the clients they will not have to worry about change of ip address whenever I move my app