Questions tagged [port]

Port is a generic term that can refer to port number (software related term), and computer hardware port. Here, questions referencing this tag refer to port numbers.

In computer networking a port is an application-specific or process-specific software construct serving as a communications endpoint in a computer's host operating system. A port is associated with an IP address of the host, as well as the type of protocol used for communication. The protocols that primarily use the ports are the Transport Layer protocols, such as the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP) of the Internet Protocol Suite. A port is identified for each address and protocol by a 16-bit number, commonly known as the port number. The port number completes the destination address for a communications session. Thus, different IP addresses or protocols may use the same port number for communication, e.g. on a given host or interface UDP and TCP may use the same port number, or on a host with two interfaces, both addresses are associated with a port having the same number.

A range of well-known ports is reserved by convention to identify specific service types on a host. In the client-server model of application architecture ports are used to provide a multiplexing service on each port number that network clients connect to for service initiation, after which communication is reestablished on other connection-specific port number.

Source: Wikipedia.

1692 questions
294
votes
8 answers

Check if port is open or closed on a Linux server?

How can I check if a port is listening on a Linux server?
James Anderson
  • 3,107
  • 2
  • 17
  • 12
147
votes
8 answers

What port should I open to allow remote desktop?

What port(s) should I open/NAT to allow me to use Remote Desktop?
Kjensen
  • 1,039
  • 10
  • 28
  • 39
125
votes
4 answers

How to check if a port is blocked on a Windows machine?

On the Windows platform, what native options to I have to check if a port (3306, for example) on my local machine (as in localhost), is being blocked?
Boris Pavlović
  • 1,363
  • 2
  • 9
  • 8
118
votes
2 answers

Why does the MySQL command line tool ignore the --port parameter?

This is what I'm doing: mysql --host=localhost --port=9999 mysql -u root -p --execute="show tables;" The command works (connecting to port 3306) no matter what I provide in --port argument. I have two mysql servers running on one machine, and want…
yegor256
  • 1,836
  • 3
  • 16
  • 30
118
votes
4 answers

What firewall ports need to be open to allow access to external git repositories?

What firewall port(s) need to be open to allow access to external git repositories?
markdorison
  • 1,315
  • 2
  • 9
  • 7
118
votes
1 answer

What ports to open for mail server?

I have just finished setting up a Postfix mail server on a linux (ubuntu) platform. I have it sending and receiving email and it is not an open relay. It also supports secure smtp and imap. Now this is a pretty beginner question but should I be…
radman
  • 1,671
  • 3
  • 16
  • 17
98
votes
3 answers

How do high traffic sites service more than 65535 TCP connections?

If there is a limit on the number of ports one machine can have and a socket can only bind to an unused port number, how do servers experiencing extremely high amounts (more than the max port number) of requests handle this? Is it just done by…
alh
  • 1,119
  • 1
  • 8
  • 5
97
votes
4 answers

What is the maximum port number in Linux?

I'd like to set some Linux services to non-standard ports - what's the highest valid port number?
Yehosef
  • 1,295
  • 2
  • 9
  • 10
90
votes
6 answers

How do you free up a port being held open by dead process?

A colleague of mine recently ran into a problem where a process that had supposedly died was still bound to a network port, preventing other processes from binding to that port. Specifically, netstat -a -b was reporting that a process named System…
Adam Rosenfield
  • 1,000
  • 1
  • 6
  • 6
83
votes
10 answers

How to check what port mysql is running on

On my windows dev box mysql is running on port 3306 How can I check what port it is running on the unix server that I have to upload the app to.
Ankur
  • 2,379
  • 7
  • 22
  • 24
75
votes
12 answers

Does changing default port number actually increase security?

I have seen advice saying you should use different port numbers for private applications (e.g. intranet, private database, anything that no outsider will use). I am not entirely convinced that can improve security because Port scanners exist If an…
Sam
  • 965
  • 1
  • 7
  • 8
74
votes
16 answers

Why Block Port 22 Outbound?

I'm a programmer, and I have worked for a few clients whose networks block outgoing connections on port 22. Considering that programmers often need to use port 22 for ssh, this seems like a counterproductive procedure. At best, it forces the…
runako
  • 841
  • 1
  • 6
  • 6
70
votes
8 answers

How to check if a port is open for remote system(ubuntu)

Is it possible to check that if the ports are open for the remote system on ubuntu server? I should able to check if a port(eg:ssh) on my machine is open for the remote machine.
user53864
  • 1,723
  • 11
  • 37
  • 66
56
votes
11 answers

Is there an equivalent to ssh-copy-id for Windows?

Is there any equivalent or port of ssh-copy-id available for Windows? That is, is there an easy way to transfer SSH keys from a local machine to a remote server under Windows? In case it helps, I'm using Pageant and Kitty (a Putty alternative)…
Matt V.
  • 837
  • 1
  • 9
  • 12
53
votes
1 answer

nginx: no permission to bind port 8090 but it binds to 80 and 8080

I'm struggling with some strange permission related behavior: when I configure nginx to listen to port 8080 everything works as expected, but when I use any other port I get something like 2014/01/10 09:20:02 [emerg] 30181#0: bind() to 0.0.0.0:8090…
frans
  • 649
  • 1
  • 7
  • 10
1
2 3
99 100