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.
7,326
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?
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 ...
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.
1129
votes
14
answers
1.5m
views
scp with port number specified
I'm trying to scp a file from a remote server to my local machine. Only port 80 is accessible.
I tried:
scp -p 80 [email protected]:/root/file.txt .
but got this error: cp: 80: No such file ...
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.
894
votes
30
answers
2.0m
views
How to kill a process on a port on ubuntu [closed]
I am trying to kill a process in the command line for a specific port in ubuntu.
If I run this command I get the port:
sudo lsof -t -i:9001
so...now I want to run:
sudo kill 'sudo lsof -t -i:9001'
...
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 ...
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 ...
538
votes
13
answers
2.3m
views
How do I determine if a port is open on a Windows server? [closed]
I'm trying to install a site under an alternative port on a server, but the port may be closed by a firewall. Is there a way to ping out or in, on a specific port, to see if it is open?
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 ...
448
votes
37
answers
683k
views
Port 80 is being used by SYSTEM (PID 4), what is that?
I am trying to use port 80 for my application server, but when I perform netstat -aon I get:
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4
When I look up the process in task manager, it shows PID 4 is SYSTEM,...
422
votes
9
answers
421k
views
git remote add with other SSH port
In Git, how can I add a remote origin server when my host uses a different SSH port?
git remote add origin ssh://user@host/srv/git/example
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
408
votes
47
answers
846k
views
Node.js Port 3000 already in use but it actually isn't?
I have been working with a node.js project for a few weeks and it has been working great. Usually, I use npm start to run my app and view it in a browser on localhost, port 3000.
Today, I started to ...
385
votes
18
answers
644k
views
Test if remote TCP port is open from a shell script
I'm looking for a quick and simple method for properly testing if a given TCP port is open on a remote server, from inside a Shell script.
I've managed to do it with the telnet command, and it works ...