port

socket_bind() [function.socket-bind]: unable to bind address [13]: Permission denied

时光总嘲笑我的痴心妄想 提交于 2019-12-25 04:42:54
问题 I am building a chat application based on websocket protocol.I am uploading this on an apache server and i am getting this error : "Warning: socket_bind() [function.socket-bind]: unable to bind address [98]: Address already in use" I am using port no. 12346. When i checked this port's status i got "12346 is not responding". I have checked many ports on my remote server ,none of them is responding.So please tell me how to check if there is a usable port which i can use?? I have also used port

VGA 15 pin port data read and write using Matlab

此生再无相见时 提交于 2019-12-25 03:24:50
问题 I am using compaq presario cq40 laptop with windows seven ultimate(32-bit OS). I would like to access the 15 pin VGA port using Matlab (preferrably using the Data Acquisition Toolbox). Do I require extra drivers or should download anything from Mathworks.com ?? I have already developed a program for sending digital signal through parallel port (LPT1) using digitalio() function in DAQ toolbox. I intend to use the VGA 15 pin port the same way (since there is no parallel port for the laptop).

How do I get the client port number in a Django project?

徘徊边缘 提交于 2019-12-25 03:10:47
问题 I am using django to build my web server, other people connect to me as clients. Now I need to know the clients' port number to distinguish them. If their browser opens two 'Tabs' of the same link, i.e. two pages but the same link, I also have to distinguish them. Although I know I can use request.META['REMOTE_ADDR'] to get the client's IP in my django view function, but this realy is not enough for me. Then I studied some TCP/IP basics and then I know that in TCP/IP layer, every IP packet

how to get default port number on which web application is running (or deployed) using javascript

喜夏-厌秋 提交于 2019-12-25 02:46:55
问题 I have a web application which is deployed at some port say 8085, and hostname is sample.something.com. Using window.location.host or window.location.port, the port is coming as blank. How can i retrieve the port number using javascript , can anyone help me out? 回答1: If window.location.port is empty that means the application is running on port 80 for http and 443 for https. As mentioned in a comment, you can use window.location.protocol to check what protocol is used (http or https).

MultiSocket Listening Linux Socket Programing

天涯浪子 提交于 2019-12-25 02:46:43
问题 This is a Simple Code that I have Written. Server responds to CONNECTIONS ON PORT 2923, 2924 and 2925. When I run the programme , the serve only accpets CONNECTION from PORT 2923. Can someone HELP me out. Thanku #include <stdio.h> #include <string.h> #include <stdlib.h> #include <errno.h> #include <unistd.h> #include <arpa/inet.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <sys/time.h> void handle_client(int cliend_fd) { int ret = accept(cliend_fd, NULL, 0

Run MPI program from console on several Windows machines

ぐ巨炮叔叔 提交于 2019-12-25 02:14:48
问题 I'm trying to execute parallel MPI program on several Windows machines (actually I have one Win7 and one WinXP machines, but people with other configurations (WinXP on all machines, for example) have the same problem). I use MPICH2 (1.4.1p1). I can execute program if I use wmpiexec (MPIEXEC wrapper - GUI for MPI) but if I try to execute it from console I catch next error: Command: mpiexec -hosts 2 locahost 2 192.168.0.102 2 <path to the program> Error: mpiexec running on <name of my machine>

web.1: crashed ERROR when scaling dyno on heroku

巧了我就是萌 提交于 2019-12-25 01:23:38
问题 i just deployed my app on heroku. The i ran: heroku ps:scale web=1 Wich ran ok, but when i wanted to check the dyno working with heroku ps i got the following: === web (1X): `bin/rails server -p $PORT -e $RAILS_ENV` web.1: crashed 2015/01/19 11:18:38 (~ 3m ago) heroku logs: 2015-01-19T15:14:06.131511+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=rock-paper-scissors-test.herokuapp.com request_id=27ca44cb-ca4e-473e-9789-0245d393bd56 fwd="190.15

npm start reports “Something is already running on port XXX” no matter what XXX is

六月ゝ 毕业季﹏ 提交于 2019-12-24 15:16:06
问题 I am trying to npm start my web app's frontend, and npm start gives me following: Something is already running on port 3000. I tried lsof -i :3000 and nothing's running on 3000. I tried modifying package.json to change to another port to start my app, but it still says Something is already running on port XXX no matter what that port is, 3000, 30006, or anything. If I point my browser to localhost:XXX it will just say ERR_CONNECTION_REFUSED because nothing's running there. I'm pretty sure it

OSGi HTTP Bundle - Bind to two ports

拜拜、爱过 提交于 2019-12-24 13:16:12
问题 I'm using the Apache Felix HTTP Jetty bundle. I can start the servlet container / HttpService and assign it to a port using the system property org.osgi.service.http.port=8080 But I would like to have two such services, bound to two different ports, eg my application API should be served on 8080, but some static web pages should be served on port 80. How can I start the HTTP service a second time on a different port? When registering servlets, how can I know which service is bound to which

Host port with DB to Docker container

天涯浪子 提交于 2019-12-24 13:04:53
问题 I have host with PostgreSQL and Docker container. PostgreSQL work on 5432 port. Docker container must connect to database. How to connect container with database through Dockerfile or run command? EXPOSE 5432 and docker run -p 5432:5432 ... did not help. 回答1: From the documentation page: Sometimes you need to connect to the Docker host from within your container. To enable this, pass the Docker host’s IP address to the container using the --add-host flag. To find the host’s address, use the