Opening a new port?

How can I open a new port for a server?

Cheers

Opening a closed port on a *nix server can be done with

iptables -A INPUT -p tcp –dport 138 -j ACCEPT

(opens port 138 for tcp. Change to udp if you need).

after that you can save and flush your ip tables.

I guess my first post was very vague. I want to open a new port for apache 2.2 so that a socket chat client made in flash will work?

then choose a port and assign it to iptables like I posted up there :wink:

What should I run that code through?

ssh.

lol, um, I have no idea what that means (n00b lol i know!!)

Edit: Ah lol! Are we talking about Unix here? Because I got Windows.