Port forwarding is the act of using redirecting one port to another, commonly used to access a computer from behind a firewall with NAT.

learn more… | top users | synonyms (1)

124
votes
1answer
225k views

What is port forwarding and what is it used for?

There are a lot of questions on 'port forwarding' but there doesn't seem to be one that clearly states what it is and what it's used for. So: What is Port Forwarding? What is it used for, and why ...
23
votes
4answers
22k views

DD-WRT: How to allow port forwarding to apply to requests originating from inside the LAN?

With the original firmware of my router I had port forwarding defined from port 80 to the server in the LAN, which I used in conjunction with an external dynamic DNS service. I've now upgraded to DD-...
23
votes
2answers
10k views

Differences between ssh -L to -D

I'm trying to understand the differences between ssh -L to -D. Is there anything else except for that -D is SOCKS only? Thanks!
21
votes
6answers
61k views

How to make a port forward in Mac OS X

I'd like to make all incoming connections to port 1000 of my host (IP: 200.234.XXX.XXX) to be forward to the port 80 on host 10.211.55.5 How can I do it on my host? It is running Mac OS X 10.5.8
20
votes
3answers
3k views

How does port-forwarding help in torrents?

I use Transmission to download files but it says that a certain port is required to be opened. However, while this port is closed I noticed that I can still download files with no problem. But when I ...
18
votes
2answers
5k views

Can I make SSH fail when a port forwarding fails?

If I do a remote port forward, a la -R 3690:localhost:3690 when a binding already exists on the port on the remote host, I get this warning: Warning: remote port forwarding failed for listen port ...
17
votes
3answers
23k views

How do I remove an SSH forwarded port

I used ssh -L 10002:192.168.0.30:10002 192.168.1.135 to establish port forwarding but now I need to remove it. How do I do this?
15
votes
1answer
12k views

pfctl port forwarding in Mac osx?

-A PREROUTING -s 10.0.10.0/24 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 -A PREROUTING -s 10.0.10.0/24 -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 8080 -A POSTROUTING -s 10.0.10.0/24 -o ...
15
votes
4answers
21k views

Howto disable SSH local port forwarding?

I have a server running Ubuntu and the OpenSSH daemon. Let's call it S1. I use this server from client machines (let's call one of them C1) to do an SSH reverse tunnel by using remote port ...
13
votes
3answers
16k views

Tunneling a TCP/IP Connection through Remote Desktop Connection

There is a remote Windows server on a private network which I can connect to via Remote Desktop Connection. I would like to be able to make TCP/IP connections from my computer to other computers on ...
13
votes
2answers
32k views

Are there good alternative HTTP ports rather than port 80?

I have been looking for some documentation on alternatives to port forwarding to port 80. I have a dedicated Linux machine on a home router, and apparently utilizing port 80 is not an option. Are ...
11
votes
2answers
22k views

No idea what is listening on port 80 in OS X

I'm on OSX Mountain Lion 10.8.3, and I've freshly rebooted my Mac. I want to start a service (like Apache on port 80), but there is already something going on with port 80: telnet localhost 80 ...
10
votes
1answer
42k views

Windows Firewall: How to allow traffic on a specific port (eg. 8080)?

I am trying to configure team Foundation Server so that: It is accessible from within my Home Network, and The Web site is accessible via the Internet I have a problem with point 1: When I ...
9
votes
2answers
41k views

Allowing a friend to connect over the internet to a Minecraft server I've hosted?

I have set up a Minecraft server and have built lots of things, now I want my friend to play on it too. I'm hosting it on my home computer and don't want to have to set up a new server elsewhere so ...
9
votes
5answers
31k views

Get Windows localhost (port 80) to forward to port 8080 for Apache service

Recent Discovery With IIS set back to port 80, when I put in http://localhost/ on the WHS computer, it gives me the "There is a problem with this website's security certificate" warning page. If I "...
8
votes
4answers
2k views

Remote connection to a PC over internet [closed]

I have a PC running Windows Vista Home Premium with Norton Internet Security 2009. I like to help my father and sister by connecting their PCs over the internet and taking full control. My father has ...
8
votes
2answers
19k views

Are virtual servers and port forwarding the same thing?

Are virtual servers and port forwarding the same thing? I always thought so but my Dlink DIR-655 has both. The only thing I can see with port forwarding is the ability to do ranges whereas virtual ...
8
votes
3answers
13k views

Port Forwarding to a VMware Workstation Virtual Machine

I am running VMware Workstation 8 (build 471480). I want to setup a small content server, mainly for images and such for my website, on my desktop in a virtual server (just for the heck of it)... I ...
7
votes
3answers
11k views

Allowing access to localhost outside network

I have a Netbeans project running on localhost with Tomcat and MySQL, all is well. I now want to show my progress to someone in another part of the country. How do I let him access my website ...
7
votes
3answers
12k views

AirPort Extreme and VPN Server

I have an AirPort Extreme (purchased about a month ago, so the latest model) and I have an iMac connected to it running a VPN server; the iMac has a static IP address on the network and is configured ...
7
votes
5answers
6k views

How to record and replay http interactions?

Is there a tool I can use in Windows to record and then programmatically (i.e. under a script or batch file) replay a specific interchange between a browser (either Firefox or IE) and a website? Here’...
7
votes
1answer
946 views

OS X: From ipfw to pfctl - Forward port 80 and 443

I found a way to forward ports 80 and 443 to other arbitrary ports (3000 and 3001 in my case) using ipfw. But ipfw is deprecated and replaced by pfctl. Here are my ipfw declarations: sudo ipfw flush ...
6
votes
3answers
1k views

Why do games need port forwarding but not applications like MSN Messenger?

Why is it that when it comes to games the topic of port forwarding often comes up but for applications such as Windows Live Messenger this is not an issue. There are however some games that do not ...
6
votes
5answers
4k views

Unable to outside access service from inside LAN

I have a weird port forwarding problem. I tried to open my port 22 to the outside network. I was able to access it as long as I am not inside the LAN. I can access it from my office for example. But ...
6
votes
1answer
5k views

Is there a script to add port forwarding rule in home router?

TL;DR: I am looking for a script or a cron job, which will periodically run on a linux host (fedora on raspberry pi) which will check if a port forwarding rule still exists in the router and add it if ...
6
votes
1answer
10k views

What is blocking my ports?

How do I find out what is blocking my ports? I am on Windows 7 x64 and trying to run Minecraft on port 25565, which worked yesterday, but not today. I have not installed any new software. I have ...
6
votes
1answer
2k views

Automatically allowing SSH into a Mac behind a UPNP router?

I have a MacBook connecting to the Internet from behind various routers from time to time. All of the routers support UPNP. I need to allow a co-worker to SSH into the machine, without configuring ...
5
votes
6answers
1k views

How to send a tcp packet to a device inside WLAN with a local IP from an external network?

I have to send a command from the internet to a device in a WLAN, which is listening to the port 9999. The device itself is only assigned local IP. I also have n (2-100+) number of devices with the ...
5
votes
4answers
4k views

SSH to computer with shared public IP and no admin rights over the router

I live in a student dorm (off-campus) and all students of the dorm share the same WAN IP (Internet or public IP), which is fortunately static. I am not an admin and have no control over the router ...
5
votes
5answers
1k views

Want to use apache, ISP blocking port 80

I am attempting to set up a small web server on my home network, but my ISP is blocking incoming port 80 ( and no, i'm not paying $50/month extra for them to unblock it). I am looking for some ways ...
5
votes
1answer
2k views

SOCKS vs. SSH local port forwarding

What's the difference between using SOCKS (SSH -D) and local port forwarding (SSH -L)
5
votes
5answers
8k views

Port forwarding software (service) for Windows

I have a server service that uses 8182 port. Somebody want to connect to this, but 8182 port is unavailable for him, only 5118 working fine. No problem I thought, I just install port forwarder ...
5
votes
2answers
8k views

ssh through a router without port forwarding

I have a linux server, and I want to put it in a home network behind a router. I need to ssh to this server sometime from outside, but I don't want to set up port forwarding because I don't have ...
5
votes
3answers
444 views

Why do some remote desktops services not require that you setup port forwarding?

I use a mixture of linux and windows machines at my office. I've got logmein running on my windows machines, and VNC setup on the linux ones. The linux logmein browser plugin works great. However, I'm ...
5
votes
2answers
5k views

Port Redirection on Mac OS X Lion

I have tried to solve this issue using pf but with no luck. Basically, I am trying to redirect incoming port 443 traffic to port 22. I have tried to set up a rule in a file and load it in pf but I get ...
5
votes
1answer
1k views

How to specify what port RDP responds to?

I need to figure out a way to force RDP(Remote Desktop) to respond to a specific port Instead of a RHP(Random High Port). I am not asking how to change what port RDP "Listens" on, but rather the ...
5
votes
1answer
11k views

SSH dynamic port forwarding, “Connection refused”

I am trying to do dynamic portforwarding using openssh through a remote computer following this command: ssh -D 6789 rohan@<remote_ip> -p <remote_port> This should set up a socks ...
5
votes
3answers
1k views

How can I get my routers to forward ports correctly?

My network currently looks like this (simplified): Note that Router #2 is connected to the LAN interface of Router #1. This should be familiar to anyone who has seen a standard static-IP setup ...
5
votes
5answers
1k views

Port(s) not forwarding?

I have cable internet service through Charter Communications and feed two desktop computers through a Linksys RP614v3 router. One system is my wife's running WinXP Home Edition and the other is mine, ...
5
votes
1answer
3k views

Why is this iptables rule that does port forwarding not working?

I have a server bound to localhost:7060. It is using ipv6 socket instead of ipv4. Below is netstat outout. # netstat -an Proto Recv-Q Send-Q Local Address Foreign Address State tcp ...
5
votes
1answer
13k views

How do I enable UPnP support in Windows 7?

Is there a checklist for enabling UPnP in Windows 7? I am on a home network with Network Discovery enabled in Network and Sharing Center, UPnP is enabled on my router, SSDP Discovery and UPnP Device ...
4
votes
3answers
5k views

How to ssh to my machine at home, when the IP address of router might change?

I often find I want a file on my home machine when I'm out and about, so I would like to set up ssh server on my home machine to be able to login securely over the internet. It's my understanding ...
4
votes
2answers
389 views

How do routers prevent automatic port forwarding from being abused

I have a Verizon FIOS router and when I install most applications that need a port forwarded, magically the entry is automatically set up in the router. I searched on google and found out this is ...
4
votes
4answers
17k views

Possible to “ping” url:port? (OS X-GeekTool)

I'm trying to use GeekTool (Mac pref pane... basically just embeds output of a shell command/script on the desktop... http://lifehacker.com/#!244026/geek-to-live--monitor-your-mac-and-more-with-...
4
votes
5answers
5k views

How to ssh into home LAN behind ISP NAT (no public IP address)?

My property management company provides free internet access. All the apartments in many buildings are behind some common NAT, so none of us have our own public IP addresses. Thus, services like ...
4
votes
5answers
12k views

Port forwarding in a network with 2 routers

I am starting a minecraft server for me and some friends. Everything works as far as I can join and play in it when I use my internal ip (192.168.1.126), but I need to forward port 25565 so my friends ...
4
votes
3answers
4k views

Stable reverse port forwarding in SSH and stale sessions

Using VPS to forward ports behind NAT: for((;;)) { ssh -R 2222:127.0.0.1:22 vi@vi-server.org; sleep 10; } When connection is broken somehow and it is reconnecting. Warning: remote port forwarding ...
4
votes
1answer
5k views

Chrome ssh tunnel forwarding

I am first logging into an ssh server. Then I am trying to use Chrome for ssh tunnel forwarding. Is there a gui way of doing this? I can do this in Firefox's gui in like 10 seconds so I would thing ...
4
votes
2answers
9k views

NAT Port Forwarding in VirtualBox

I have enabled two adapters in my VirtualBox (running Ubuntu 12.10 Server Edition), with types as: Host-only and NAT. My main motive is to be able to connect two VMs running on two different hosts (...
4
votes
1answer
15k views

NAT vs Port Forwarding [duplicate]

Possible Duplicate: What is port forwarding and what is it used for? What is the difference between NAT and Port Forwarding? Are they two different names for the same thing? Could you provide ...