port

JMX enabled Java application appears to open a random high order port when JMX client connects

浪子不回头ぞ 提交于 2020-01-10 03:47:05
问题 JMX enabled Java application appears to open a random high order port when JMX client connects I have successfully configured a helloworld JMX enabled program, and I can connect to it using jconsole JMX client from a remote location. When I attempt to turn on iptables I noticed that a random high order port is established when a client logs in. Eventually I would like to monitor Java applications in firewall segregated network segments. Can we control the range the random port opens in? I'll

OpenShift node.js Error: listen EACCES

核能气质少年 提交于 2020-01-09 09:49:09
问题 I have been using OpenShift with node.js and socket.io. My code is: server.listen(process.end.OPENSHIFT_NODEJS_PORT || 3000); My code says that it returns port 8080. However, I get this error: DEBUG: Starting child process with 'node server.is' Info: socket.io started warn:error raised: Error: listen EACCES How can I fix this? No other solution I can find works. 回答1: You also need to specify to bind to your OPENSHIFT_NODEJS_IP in your listen, as it is trying to bind to 0.0.0.0 by default,

permanent USB port names? (Linux) [closed]

有些话、适合烂在心里 提交于 2020-01-07 04:58:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I have two Arduinos now used by my program. SInce I'm on Linux and new to Linux, the port isn't static, like "com3" and "com6", I think it's "ttyUSB0" for the first Arduino which is connected, and "ttyUSB1" for the second and so on. But since both are connected when the OS boots, can I be certain that the port

Port availability check on remote system

*爱你&永不变心* 提交于 2020-01-07 02:11:32
问题 How can I tell if a given port is available or not on a local or remote system, in an NSIS page? 回答1: Abuot COM ports: They cannot be detected directly from NSIS so write simple plug-in in C which will detect port by it's number. This is my basic idea: void GetListOfLocalPorts(CList<CString, CString>& o_lstPorts) { for( int i = 1; i <= 99; i++ ) { DCB dcb; HANDLE hCom = NULL; BYTE byPort = (BYTE)i; CString strPort; strPort.Format("COM%d", i); CString strCom = (CString)"\\\\.\\" + strPort;

Cannot bind to port 80, Microsoft-HTTPAPI/2.0 Lock

心已入冬 提交于 2020-01-06 20:24:17
问题 So, I've been trying to bind Wowza media server to port 80 on our fail-over production server, and I'm encountering something else being bound to the port. The process reports as 'System' with PID 4. After chasing myself around the web for a while, I found numerous indicators that it could be IIS, MSSQL, Microsoft's Web Deployment Service, or even the Branch Cache service. After exploring all of these options, as well as a couple more that relate specifically to this server, I can say that

Express is listening on port 3000 despite setting it to 80?

﹥>﹥吖頭↗ 提交于 2020-01-06 20:21:39
问题 Running on Amazon EC2. The code was created automatically by express-generator. To start the app I had to do this: sudo PORT=80 npm start Then I added lines 14: app.set('port', process.env.PORT || 80); And 66 http.createServer(app).listen(app.get('port'), function(){ console.log('Express server listening on port ' + app.get('port')); Now I can start the app by saying: sudo npm start but it says - Express server listening on port 3000. I can access it from my browser, but why 3000 http:/

How to connect to localhost using external IP address?

独自空忆成欢 提交于 2020-01-06 11:41:46
问题 I've searched in general, and looked at suggested responses here, so I hope this isn't immediately marked as a duplicate. So here goes. I'm building a simple web app with an Angular server using port 3000 on my desktop. I've been testing it with the standard "localhost:3000" URL. I then wanted to make it accessible to others outside my home for testing and review. So I did the expected port forwarding in my router of port 3000 to my local machine at 10.0.0.90. I then constructed a link using

How to connect to localhost using external IP address?

孤者浪人 提交于 2020-01-06 11:39:22
问题 I've searched in general, and looked at suggested responses here, so I hope this isn't immediately marked as a duplicate. So here goes. I'm building a simple web app with an Angular server using port 3000 on my desktop. I've been testing it with the standard "localhost:3000" URL. I then wanted to make it accessible to others outside my home for testing and review. So I did the expected port forwarding in my router of port 3000 to my local machine at 10.0.0.90. I then constructed a link using

Connecting to Web Service in VM from client in host

为君一笑 提交于 2020-01-06 05:35:13
问题 I'm running Ubuntu 10.10 in VirtualBox with Windows 7 as host. I have a java Web Service which I deploy onto a Glassfish3 server in Ubuntu and I want to be able to reach it from the host, according to the VBox documentation I should port forward port 8080 which is the port that my client application connects to on my host. To do this I do the following command in Windows VBoxManage modifyvm Ubuntu --natpf1 glassfish,tcp,,8080,,8080 which should forward my hosts 8080 port to my VM's 8080 port,

Android SipProfile Uri UDP Port error

断了今生、忘了曾经 提交于 2020-01-06 02:52:29
问题 I want to connect via UPD to my sip server, I have the username, the ip address of the server (domain) and the port (for example 9990). I get the following error: android.net.sip.SipException: SipService.createSession() returns null At this line: mSipManager.register(mSipProfile, 300, mSipRegistrationListener); Here's the code I'm using, adapted from android documentation: private void startSip() { LogUtils.LOGE(TAG, "[startSip]"); if (SipManager.isVoipSupported(this) && SipManager