Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What's the simplest way to forward packets from the source to a destination? The theory would be this: There is an application (maybe a standard network type, or maybe another type). Let's say it uses port 41 to make a connection to a computer where a server listens on that port. The thing in this case though, is that server, may really be located on 2 different IP addresses. They are 2 different computers. Now some applications let you do this differnetly. Such as if you have 2 webservers on different computers. You could have them accessed on 2 different computers maybe by public port 50 being forwarded to port 41, at IP address 3.1.1.3 and public port 90 being forwarded to port 41 at IP address 3.1.1.66. But what if the application doesn't allow you to switch which outgoing port it uses, so it's stuck with accessing port 41, and you can't change the incomming port, so it's stuck listening at port 41? I've got a DIR-615 Router, and I could theoretically set up some kind of virtual server or something on a computer to do the job if I needed to. I'm new at this kind of stuff anyway, so a simple explanation would be helpful of how any port forwarding is done in theory anyway.
Looks like it might be on the right track, but maybe not there yet. It would work right all right to have servers running on the same port, and have them run on a kind of a shared IP address, at least in some situations. So thanks. There's also others, which it wouldn't work for, like when you want it to go to a specific computer, because they're seperate games playing, or your playing a game between 2 computers inside, plus one computer outside.
I've now refound the proper article. This is the most complicated of the cases I'm wanting to learn, thus far, but is the specific example I was trying to do.
http://www.psmonopoly.com/index.php/...r-network.html is what I'm trying to do. But do I know which computer is going to be playing the game at that point in time? Not exactly. It could be 5.5.5.1 or 5.5.5.2 or 5.5.5.254 (not the real IP Addresses, but the real concept). Therefore I don't know which IP Address to send them to. I only know the ports to open.
I've now refound the proper article. This is the most complicated of the cases I'm wanting to learn, thus far, but is the specific example I was trying to do.
http://www.psmonopoly.com/index.php/...r-network.html is what I'm trying to do. But do I know which computer is going to be playing the game at that point in time? Not exactly. It could be 5.5.5.1 or 5.5.5.2 or 5.5.5.254 (not the real IP Addresses, but the real concept). Therefore I don't know which IP Address to send them to. I only know the ports to open. I can use a server for the final redirection if I have to though, in theory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.