2

I can't track down what's forcing localhost:8000 and localhost:8888 to redirect to localhost:8080. Is there anyone out there that has an idea? I'm on a local machine, mac os x, not a server. I've used jekyll, pow, haproxy, nodejs, webrick, and mamp. Right now none of them are running (as far as I know).

2 Answers 2

1

Here's a bash script that will kill the process running on a specific port.

lsof -n -i4TCP:3000 | grep LISTEN | tr -s ' ' | cut -f 2 -d ' ' | xargs kill -9

Just replace 3000 with the desired port you'd like to kill.

This should clear all your ports for you:

lsof -n -i4TCP:8080 | grep LISTEN | tr -s ' ' | cut -f 2 -d ' ' | xargs kill -9
lsof -n -i4TCP:8888 | grep LISTEN | tr -s ' ' | cut -f 2 -d ' ' | xargs kill -9
lsof -n -i4TCP:8000 | grep LISTEN | tr -s ' ' | cut -f 2 -d ' ' | xargs kill -9
0

There is a lot of tiny tools that can do that for you. Search for port forwarding tools...

You can also make a tunnel with ssh.

1
  • I think I might have worded the title wrong. The ports are forwarding and I dont know how / why. How can I go about stopping the forwarding? Mar 20, 2013 at 20:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.