0

From previous questions/answers I understand that forwarding one certain port to two different IP addresses is not possible.

I have a laptop that connects through the router to the internet. When it's on Wi-Fi it gets a different internal IP than when it's using the Ethernet cable.

My torrent client (Transmission) requires that a certain port is opened and forwarded to the machine. Problem is, I can only forward the port to either the Ethernet interface, or the Wi-Fi interface. I would like to somehow switch from one network interface to the other without interrupting my torrent client. How can I achieve this?

3 Answers 3

2

Using your operating system, if you set the IP address (e.g. 192.168.1.2), subnet mask (e.g. 255.255.255.0), default gateway (e.g. 192.168.1.1) and DNS (e.g. 192.168.1.1 or 8.8.8.8) manually on both the PC LAN and Wifi Interfaces, the router will be forced to talk to your PC using that IP address, regardless whether you are using the LAN or Wifi. Just make sure you do not connect both at the same time.

2

I don't think you can forward the SAME port to 2 IP addresses (without spoofing the MAC which could lead to problems, as discussed above).

One solution would be to turn on uPNP on both the router and the torrent client, which automatically forwards ports for you. (delete the manual forward)

0

In some routers you can assign an IP to a MAC address (I believe you can do that for two as well).

So forward the port to that IP, and save that IP for both your ethernet MAC address and your wifi MAC address. On a second hand, my router doesn't allow me to do that so perhaps it isn't possible...

I've got it! Ubuntu lets you fake your MAC address, so perhaps you can do that to have the same MAC address for both the wifi and the ethernet interface!

Mac spoofing Then just add a static IP for that address static ip

And finally forward to that IP.

You might not be an ubuntu user, but if you can do it there, you can probably do it everywhere else.

2
  • This other answer suggest that it's a bad idea to have the same IP for different interfaces because it essentially "fools" the router in thinking it has the same device. This might lead to problems. Jan 4, 2014 at 0:56
  • I see your concern. But I don't know what to say. To my eyes it looks the same as unplugging the ethernet cable from the router slot #1 and then plugging it in the slot #2. I'd recommend you to try it either way. The worst that could happen is being unable to access the internet for a few seconds while the router is confused. It's either that or using upnp.
    – brunch875
    Jan 4, 2014 at 1:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .