ports

NodeJS Express - separate routes on two ports

删除回忆录丶 提交于 2019-12-02 16:38:52
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 other functionality) would be on one port, and the helper routes of "/killallthings", "/listallthings", and "/killserver" would be on a separate port. Here is a simplified version of the code: var express = require('express'); var things = []; var app = express(); var port = 8080; app.post('/factory/', function(req, res) { //Create a thing and add it

Which port(s) does XMPP use?

和自甴很熟 提交于 2019-12-02 15:23:19
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 bother the network admin? Thanks Mark Byers According to Wikipedia : 5222 TCP XMPP client connection (RFC 6120) Official 5223 TCP XMPP client connection over SSL Unofficial 5269 TCP XMPP server connection (RFC 6120) Official 5298 TCP UDP XMPP JEP-0174: Link-Local Messaging / Official XEP-0174: Serverless Messaging 8010 TCP XMPP File transfers

Using predefined SVG file for creating a custom JointJS shape with ports

百般思念 提交于 2019-12-02 07:37:08
I have a series of pre-created SVG symbols I want to use in JointJS. I've searched about using precreated SVGs and I found to be possible to create a complete custom elements using SVG by putting the SVG in the 'markup' property - ( https://groups.google.com/forum/#!topic/jointjs/pQvN_0lXPVk ). Below is the example of an SVG. Your help about how can I embed this definition in the markup property and add ports to it will be highly appreciated. Thanks <?xml version="1.0" standalone="no"?> <svg viewBox="0 0 1024 768" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org

Get connecting IP from specified ports that using by other program

删除回忆录丶 提交于 2019-12-01 14:15:26
Does anyone know how to Get connecting IP from a specified port that is using by another program. in C#. Thanks So you basically want to build your own version of netstat in C#? Build your own netstat.exe with c# 来源: https://stackoverflow.com/questions/1738155/get-connecting-ip-from-specified-ports-that-using-by-other-program

Get connecting IP from specified ports that using by other program

≡放荡痞女 提交于 2019-12-01 12:01:27
问题 Does anyone know how to Get connecting IP from a specified port that is using by another program. in C#. Thanks 回答1: So you basically want to build your own version of netstat in C#? Build your own netstat.exe with c# 来源: https://stackoverflow.com/questions/1738155/get-connecting-ip-from-specified-ports-that-using-by-other-program

Can I open ports on Azure Websites?

情到浓时终转凉″ 提交于 2019-12-01 06:26:22
If I want to self host WCF in a Windows Azure Website by spinning up my own ServiceHost can I host end points on 8080 or any other port I want to? Is there any specific usable range of ports I have access to or is port access entirely blocked? Edit: for absolute clarification this question is NOT about web or worker roles and is only about Azure Websites This blog post is slightly out dated now as Windows Azure Websites have more features now (like staging and production slots, WebJobs, etc) but the part regarding ports is still true for Azure Websites. When to use Cloud Services [...] Windows

Tomcat configuration help: multiple ports not responding

為{幸葍}努か 提交于 2019-11-30 21:09:54
My goal is to have port 80 and 81 listen and serve content from two distinct paths. I'm looking at replicating what I used to do with IIS and creating websites on specific ports. I took the base configuration file and added the following lines inside the Server tag (server.xml): <Service name="stable"> <Connector port="80" protocol="HTTP/1.1" /> <Context docBase="C:\websites\test\stable\" /> </Service> <Service name="release"> <Connector port="81" protocol="HTTP/1.1" /> <Context docBase="C:\websites\test\release\" /> </Service> I was going on a tip where I had to install a Service tag with

Docker: MacOSX Expose Container ports to host machine

天大地大妈咪最大 提交于 2019-11-30 08:38:39
In my job I working with docker and the option --net=host working like a charm forwarding the docker container ports to the machine. This allows me to adding grunt tasks that use certain ports by example: A taks for serving my coverage report in a port 9001 A local deployed version of my app served in the port 9000 A watch live reload the port 35729 For Unit testing runner use the 9876 port When I begin to use Docker in Mac, the first problem that i had was: The option --net=host don't work anymore. I researched and I understand why this is not possible (Docker in Mac runs in a own virtual

Identifying listening ports using Python

廉价感情. 提交于 2019-11-30 07:31:25
In translating some scripts from bash, I am encountering many uses of netstat -an to find if one of our services is listening. While I know I can just use subprocess.call or other even popen I would rather use a pythonic solution so I am not leveraging the unix environment we are operating in. From what I have read the socket module should have something but I haven't seen anything that checks for listening ports. It could be me not understanding a simple trick, but so far I know how to connect to a socket, and write something that lets me know when that connection failed. But not necessarily

Is there any standard alternative HTTPS port?

人走茶凉 提交于 2019-11-30 06:35:00
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 handling the 443 port, is there any convention about which port to use? Side note: this question was posted for reference means since the answer was already posted to a question, but that question was not asking exactly that - anyway the answer was collecting lots of positive votes. There is no standard about that, but port 8443 is sometimes known as