Questions tagged [ports]

Applications and services use unique ports to communicate with other devices over a network. Ports range from 1 to 65,535.

Applications and services use unique ports to communicate with other devices over a network. Ports range from 1 to 65,535. The web service uses port 80 for unencrypted HTTP traffic and port 443 for encrypted HTTPS traffic.

541 questions
189
votes
6 answers

How do ports work with IPv6?

Conventional IPv4 dotted quad notation separates the address from the port with a colon, as in this example of a webserver on the loopback interface: 127.0.0.1:80 but with IPv6 notation the address itself can contain colons. For example, this is…
Peter Wone
  • 17,965
  • 12
  • 82
  • 134
87
votes
2 answers

lsof print numeric ports

How do you get lsof to produce numeric port information instead of attempting to resolve the port to service name? For example, I want TCP *:http (LISTEN) to give me TCP *:80 (LISTEN) in-fact if at all possible I never want to see another service…
Coder Guy
  • 1,843
  • 1
  • 15
  • 21
72
votes
3 answers

How to list exposed port of all containers?

We have lots of containers started using Rancher with each container exposing multiple ports. Since we started the containers with Rancher, no port is exposed to the host by default. $ docker container ls shows no exposed ports for containers…
WeSee
  • 3,158
  • 2
  • 30
  • 58
61
votes
7 answers

how can an application use port 80/HTTP without conflicting with browsers?

If I understand right, applications sometimes use HTTP to send messages, since using other ports is liable to cause firewall problems. But how does that work without conflicting with other applications such as web-browsers? In fact how do multiple…
Mr. Boy
  • 60,845
  • 93
  • 320
  • 589
56
votes
4 answers

Which port(s) does XMPP use?

I´ve searched and didnt find which ports does XMPP uses. I need to implement XMPP server and client and use XML transfer, file transfer and streaming. Do they use different ports?? Is there a way I can make them use all the same, so I dont need to…
fredcrs
  • 3,558
  • 7
  • 33
  • 55
54
votes
3 answers

Use SQL Server Management Studio to connect remotely to an SQL Server Express instance hosted on an Azure Virtual Machine

Initial Attempt I have an Azure VM with Windows Server 2012, on which I just installed SQL Server 2012 Express Database Engine component. Then, I followed the instructions here to connect remotely with SQL Server Management Studio. Create a TCP…
Shaun Luttin
  • 133,272
  • 81
  • 405
  • 467
52
votes
4 answers

Is there any standard alternative HTTPS port?

HTTP has some well-known alternative ports, like 8080, etc. If I need to deploy any service which is served through secure HTTP, or maybe I need to assign any port to a HTTPS service on my local machine, but I already have another HTTPS service…
Áxel Costas Pena
  • 5,886
  • 6
  • 28
  • 59
48
votes
2 answers

Programmatically stop and restart express servers (to change ports)

I'm looking to be able to basically change ports that my express app is running on. I've tried: server.on('close', function() { server.listen(3000); }); server.listen(8080); server.close(); This returns a cryptic node.js error. I'm running node…
Matt
  • 22,224
  • 25
  • 80
  • 116
39
votes
5 answers

How do I redirect from Apache to Tomcat?

I'm working on my first Java site. I'm running Apache Tomcat on port 8080, and Apache HTTPD on port 80. The current URL that I can access the site at is (for example) 123.4.5.6:8080. I want to remove the port number from the URL before I point the…
Alan
  • 574
  • 2
  • 9
  • 16
37
votes
8 answers

Java: Common way to validate and convert "host:port" to InetSocketAddress?

What is the common way in Java to validate and convert a string of the form host:port into an instance of InetSocketAddress? It would be nice if following criteria were met: No address lookups; Working for IPv4, IPv6, and "string" hostnames; (For…
java.is.for.desktop
  • 10,748
  • 12
  • 69
  • 103
32
votes
2 answers

NodeJS Express - separate routes on two ports

I have an express server, and while building it created several "helper" functions on their own routes. I'd like those routes to be accessed on a different port. Is there anyway to do this in express? In the code below, the "/factory" route (and…
JKC
  • 741
  • 1
  • 6
  • 7
26
votes
2 answers

Different ports used by consul

What are the different ports used by consul? What is the purpose of each port? Is there any way to configure consul to run using different ports?
eldos
  • 3,132
  • 3
  • 29
  • 32
26
votes
2 answers

view SSL certificate on ports 587, 25, 110, 465, 995, 143, 993

How can I view the SSL certificate details that is being used on ports 587, 25, 110, 465, 995, 143 & 993 I need to check which domain name is being used to secure these ports. I've search here and on google but can't find anything!
user1398287
  • 5,245
  • 5
  • 21
  • 25
24
votes
12 answers

Accessing Websites through a Different Port?

I am wanting to access a website from a different port than 80 or 8080. Is this possible? I just want to view the website but through a different port. I do not have a router. I know this can be done because I have a browser that accessing websites…
Marcus Krueger
  • 331
  • 2
  • 4
  • 7
18
votes
5 answers

How to connect to docker mysql container on remote machine

I have two machines. My machine with IP1(Europe), and other machine with public IP2(USA). On IP2 I have mysql container running with volume /var/lib/mysql set to be replicated in some folder on the host machine ~/mysqldatabase. Firewall rule for…
makkasi
  • 6,328
  • 4
  • 45
  • 60
1
2 3
36 37