Questions tagged [port]
A port is a communication end-point in the context of network communications or an interaction point for inter-component interactions. Do not use this tag for software ports from one platform or language to another, but use the tag "porting" instead.
672
questions
3348
votes
34
answers
5.6m
views
How do I find out which process is listening on a TCP or UDP port on Windows? [closed]
How do I find out which process is listening on a TCP or UDP port on Windows?
758
votes
8
answers
318k
views
What is the difference between "expose" and "publish" in Docker?
I'm experimenting with Dockerfiles, and I think I understand most of the logic. However, I don't see the difference between "exposing" and "publishing" a port in this context.
All the tutorials I ...
363
votes
17
answers
408k
views
Can two applications listen to the same port?
Can two applications on the same machine bind to the same port and IP address? Taking it a step further, can one app listen to requests coming from a certain IP and the other to another remote IP?
I ...
1077
votes
65
answers
1.2m
views
How to configure port for a Spring Boot application
How do I configure the TCP/IP port listened on by a Spring Boot application, so it does not use the default port of 8080.
301
votes
9
answers
281k
views
How to open a specific port such as 9090 in Google Compute Engine
I have 2 Google Compute Engine instances and I want to open port 9090 in both the instances. I think we need to add some firewall rules.
Can you tell me how can I do that?
1144
votes
38
answers
537k
views
What is the difference between a port and a socket?
This was a question raised by one of the Software Engineers in my organisation. I'm interested in the broadest definition.
1483
votes
35
answers
2.9m
views
How to kill a process running on particular port in Linux?
I tried to close the tomcat using ./shutdown.sh from tomcat /bin directory. But found that the server was not closed properly. And thus I was unable to restartMy tomcat is running on port 8080.
I ...
780
votes
17
answers
1.0m
views
How do I assign a port mapping to an existing Docker container?
I'm not sure if I've misunderstood something here, but it seems like it's only possible to set port mappings by creating a new container from an image. Is there a way to assign a port mapping to an ...
337
votes
26
answers
339k
views
Accessing localhost:port from Android emulator
I'm running a web service on my local machine that runs at localhost:54722.
I want to call the service from an app running in the Android emulator.
I read that using 10.0.2.2 in the app would access ...
308
votes
3
answers
247k
views
What is the theoretical maximum number of open TCP connections that a modern Linux box can have
Assuming infinite performance from hardware, can a Linux box support >65536 open TCP connections?
I understand that the number of ephemeral ports (<65536) limits the number of connections from one ...
416
votes
19
answers
485k
views
Get protocol, domain, and port from URL
I need to extract the full protocol, domain, and port from a given URL. For example:
https://localhost:8181/ContactUs-1.0/contact?lang=it&report_type=consumer
>>>
https://localhost:8181
147
votes
10
answers
181k
views
Sockets: Discover port availability using Java
How do I programmatically determine the availability of a port in a given machine using Java?
i.e given a port number, determine whether it is already being used or not?.
121
votes
3
answers
121k
views
What is the meaning of SO_REUSEADDR (setsockopt option) - Linux? [duplicate]
From the man page:
SO_REUSEADDR Specifies that the rules
used in validating addresses supplied
to bind() should allow reuse of local
addresses, if this is supported by the
protocol. This ...
461
votes
5
answers
407k
views
How do multiple clients connect simultaneously to one port, say 80, on a server? [duplicate]
I understand the basics of how ports work. However, what I don't get is how multiple clients can simultaneously connect to say port 80. I know each client has a unique (for their machine) port. Does ...
283
votes
7
answers
609k
views
What is the difference between ports 465 and 587? [closed]
These ports 465 and 587 are both used for sending mail (submitting mail) but what is the real difference between them?