Question:
Can I Do Port Forwarding on 5643 to Two Of My Home PC's Behind a Router?
2008-11-09 14:35:07 UTC
For example, i configure my router to port forward this port

5643 on IP 192.168.0.101
5643 on IP 192.168.0.102

Note: assume each application on each PC differs than each other...

1.Is this possible?

2. If yes, then how come my router will know which PC the client want to connect to?

3. If no, then how come every pc listens on port 80 to receive webpages from webserver? Aren't most PC's listen on port 80!

4. What if each of these two pc's has same application that listens on port 5643, will this work?, will both pc's will respond to the calling client?
Four answers:
Stuart
2008-11-09 15:01:46 UTC
1. No

2. It won't

3. Most PCs don't listen to any ports unless you have a server running on them. Most people don't do this unless they turn on, for example, file sharing.

4. Two PCs can listen to the same port, but you cannot forward from an external internet source to both PCs.



When a signal is sent to a PC to initialise a new connection, it has an IP address and a port. The IP address says which machine and the port says which door to use to get in. On a network this is fine because you have the direct IP address of a machine so you cannot end up muddling ports together. When connecting from the internet, the external client only knows the IP address of your router. It is then the router's job to realise which machine that signal is to go to. In the case of most requests the router just says no to the request. If you've set up a port forwarding, it uses the port number to realise which machine to talk to and forward this information to. When you connect to a web page, you send a signal OUT of your internet connection, asking the server on the other end to respond to your request. If the server accepts your connection, you set up a channel and no longer need the port number of the other end. The two machines can then talk to each other freely without needing to worry about IPs and Ports any more because the connection is already made. Imagine it like a mobile phone where you call someone and can then talk to them as long as you like without typing their telephone number in again between words.



So in other words, if you have two machines on your network that need to set up a server, you'll have to put them on two different WAN ports. I.e. the client outside your internet has to ask for port x even if the server on your network is port y. Most routers let you do this. Say you have two machines on port 5643 .. you can set one routing from outside to go from 5643 to 5643 on 192.168.0.101 and another to go from 5644 to 5643 on 192.168.0.102. The outside port doesn't have to match the inside port, but they all have to be different on the outside because once port 5643 is used up, another connection cannot be made and the router cannot decide which internal IP address to forward to.
David D
2008-11-09 14:39:35 UTC
1. No



2. That's why it isn't



3. They don't. Web SERVERS listen on port 80. The port the response is sent to is dynamically allocated by the networking stack on the client and included in the low level TCP/IP data



4. Since the port can only be forwarded to one computer, only the one it is forwarded to will recieve the request.
plasticpeanutofdoom
2008-11-10 02:28:38 UTC
choose one computer.



Control Panel>Network Connections>Local Area Connection>Support>copy down the ip address, subnet mask and default gateway



go to the other computer



Control Panel>Network Connections>Local Area Connection>Properties>Select Internet Protocol (TCP/IP)>Properties>Use the following ip address:>enter the ip address, subnet mask and default gateway



Then use: http://www.portforward.com/english/routers/port_forwarding/routerindex.htm

to do the rest. Scroll down and select your ROUTER, then program, then follow the guide.
?
2016-09-29 15:43:54 UTC
a rapid an consumer-friendly way is to get entry to the tricky force of the computer over NetBios. Assuming you the two have no firewall or have configured get entry to between the computers' you're able to do right here. NameOfComputerC$ e.g. RedGnomosC$ - i'm choose to verify the contents of my C force.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...