Questions tagged [port-number]

A port is identified for each address and protocol by a 16-bit number, commonly known as the port number.

A port is identified for each address and protocol by a 16-bit number, commonly known as the port number. The port number, added to a computer's IP address, completes the destination address for a communications session. That is, data packets are routed across the network to a specific destination IP address, and then, upon reaching the destination computer, are further routed to the specific process bound to the destination port number.

77 questions
115
votes
24 answers

How to change the port number for Asp.Net core app?

I added the following section in project.json. "commands": { "run": "run server.urls=http://localhost:8082", "web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://localhost:8082", "weblistener":…
ca9163d9
  • 27,283
  • 64
  • 210
  • 413
96
votes
8 answers

How do you decide what port to use?

This is a little subjective, as there are no rules so to speak. Every time I create a server, I think to myself, "What is the best port to use?" I guess an answer is "Any, as long as the user can change it." So, how does everyone else decide how to…
Nick Bolton
  • 38,276
  • 70
  • 174
  • 242
72
votes
9 answers

mysql server port number

I've just made a database on mysql on my server. I want to connect to this via my website using php. This is the contents of my connections file: $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = 'password'; $conn = mysql_connect($dbhost, $dbuser,…
109221793
  • 16,477
  • 38
  • 108
  • 160
20
votes
3 answers

Where to set value of liveServer.settings.port in live server extension of visual studio code

I am working on Angular7 with visual studio code editor URL: http://localhost:4200 (Working fine) But, I installed extension Live Server and when I click on Liveserver icon its giving me the error "Error on port 5500. Please try to change the…
12
votes
4 answers

How to get VNC port number using libvirt?

I set autoport=yes in a domain's("virtual machine" in libvirt) config file so the VNC port is assigned automatically in the run time. I need to get this port so I can connect to the vm from outside, but I can't find the proper API to do so. Better…
can.
  • 2,098
  • 8
  • 29
  • 42
11
votes
2 answers

$_SERVER['HTTP_HOST'] contains port number too =/

I don't know maybe it's a bug. I have 2 virutalhosts on my server. virtualhost1.com virtualhost2.com if i open virtualhost1.com with port 80 (virtualhost1.com:80) $_SERVER['HTTP_HOST']='virtualhost1.com'; but if i open…
dynamic
  • 46,985
  • 55
  • 154
  • 231
9
votes
2 answers

Issue with Running Apache Tomcat -XDB

This is the error I get when I try to run tomcat server "the server localhost:8080 requires a username and a password. the server says: XD". I hav researched and found that it is due to Oracle. Since Oracle has hijacked that portnumber. So I changed…
Mounica Reddy
  • 91
  • 1
  • 1
  • 2
7
votes
1 answer

java regex matching ip address and port number as captured groups

could please anybody tell me what is wrong with this regexp ? ((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))\\:([0-9]{2,5}) for matching this: assfasfas>192.168.1.1:8080192.168.222.43:8286 I need…
lisak
  • 21,611
  • 40
  • 152
  • 243
6
votes
5 answers

Sitecore adding port numbers to all URLs

Wondering if anyone has seen this behavior before. My instance of Sitecore 6.6 appends the port number to all the URLs it generates for my site. So for example, a link to the home page should be "https://example.org", but instead it's generated as…
gfrizzle
  • 12,419
  • 19
  • 78
  • 104
4
votes
3 answers

knowing the port number during RMI

Is there a method to know the port number of both the client and server during RMI? When a result is returned during RMI to the client, next time the client requests the result, will the conversation between client and server be at the same port as…
Suhail Gupta
  • 22,386
  • 64
  • 200
  • 328
4
votes
3 answers

Regular expression to validate InetSocketAddresses (ipv4/v6 + port addresses)

I am looking for tested regular expressions for both ipv4 and ipv6 InetSocketAddress (i.e., ip address + port number). I am not interested in validating hostnames. It can be two regex (one for ipv4, one for ipv6) or one combined regex. Does anyone…
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
3
votes
3 answers

How to run Node/Express App on port 3001, 3002 etc?

We are using 4 different express projects in a single server, running pm2 start cmd from each project root directory to start the app. And using ec2 Linux server, added port 3000, 3001 to inbound rules, both runs fine but not able to access API's…
151291
  • 3,308
  • 7
  • 48
  • 81
3
votes
4 answers

How can I find an unused port?

I need to create a brain-dead HTTP server that returns 404s for everything on localhost. Specifically, I have a program under an acceptance test harness which calls out to a server, but for testing I want to save time by skipping that unrelated…
Billy ONeal
  • 104,103
  • 58
  • 317
  • 552
3
votes
3 answers

How do my browser knows it needs to connect to port 443 or port 80?

This is what I am trying to do: Open a browser and start to browse any https website like Gmail or Google.com I can see through Wireshark that the name resolution is being done by the DNS server. But after that, the connection is directly…
hsengiv86
  • 69
  • 2
  • 6
3
votes
2 answers

Port Number for Incoming Apple Push Notifications

What network services, port numbers, outgoing incoming or both, need to be open on a network for an ipod touch to receive Apple Push Notifications? I know the outgoing port number to set when sending the apns. The only thing is, in my school…
ecbtln
  • 2,646
  • 5
  • 27
  • 35
1
2 3 4 5 6