port

Mongo: network error while attempting to run command 'whatsmyuri' on host

孤者浪人 提交于 2020-01-02 01:55:31
问题 I have been trying to access my mongo instance from another machine, but I get this error. I could not find many references to this whatsmyuri error. This is what I get from the external machine: $ mongo <IP_ADDRESS>:27017/youtube_advertising -u user -p password MongoDB shell version: 3.2.0 connecting to: <IP_ADDRESS>:27017/youtube_advertising 2016-02-19T17:10:02.923+0100 E QUERY [thread1] Error: network error while attempting to run command 'whatsmyuri' on host '<IP_ADDRESS>:27017' : connect

docker container port accessed from another container

人走茶凉 提交于 2020-01-01 19:39:09
问题 I have a container1 running a service1 on port1 also I have a container2 running a service2 on port2 How can I access service2:port2 from service1:port1? I mention that the container are linked together. I ask if there is a way to do it without accessing the docker0 IP (where the port is visible) thanks 回答1: The preferred solution is to place both containers on the same network, use the build-in dns discovery to reach the other node by name, and you'll be able to access them by the container

How do multiple clients connect simultaneously to one port, say 80, on a server? [duplicate]

旧街凉风 提交于 2020-01-01 18:21:30
问题 This question already has answers here : Does the port change when a server accepts a TCP connection? (3 answers) Closed last year . I understand the basics of how ports work. However, what I don't get is how multiple clients can simultaneously connect to say port 80. I know each client has a unique (for their machine) port. Does the server reply back from an available port to the client, and simply state the reply came from 80? How does this work? 回答1: First off, a "port" is just a number.

Why do we need to specify a port number while using HTTP protocol?

醉酒当歌 提交于 2020-01-01 09:08:10
问题 Why do we need to specify a port number with an IP address even if we are using HTTP protocol? For example - http://xyz:8080... - what does this even mean? We already know that while using HTTP the request will be served at port 80, so why do we specify a port explicitly? Please bear with me with this stupid question. 回答1: The default port for HTTP is 80 and HTTPS is 443 but port numbers range from 0 to 65535. Most web servers listen on the default port so it's simpler to refer to the URL

Find a free port

本秂侑毒 提交于 2020-01-01 09:03:13
问题 I'm writing an FTP server library (because I need it and I can't find any good solutions for this) in C# and I have two questions: How does IPEndPoint find a free port when I do new IPEndPoint(IPAddress.Any, 0) , for example? Is it possible to find a free port from a range (for example from 1023 to 65535), without the GetActiveTcpConnections method? Because it is slow - I need a faster way to do this. 回答1: As soon as you start listening on an unassigned port (0), it will be assigned by the

jboss 5 changing default port

本秂侑毒 提交于 2020-01-01 02:28:06
问题 I am trying to change the default port on my jboss server to port 80. i have had a look around the web and i have had suggestions of editing this file jboss5\server\default\deploy\jbossweb.sar\server.xml which is fine. changing this file alone still does not fix the issue. There have also been suggestion to also change this file: jboss5\server\default\conf\bootstrap\bindings.xml Only problem is that i cant find this binding.xml Is the binding.xml file a standard in JBoss 5? Or has it been

Apache httpd vs. Tomcat 7: port 80 vs. port 8080

空扰寡人 提交于 2020-01-01 00:35:29
问题 I had recently installed Tomcat 7 on Amazon ec2. I found that Tomcat, by default, listens on port 8080. The documentation on the internet advocates that this is because linux is better saving the lower ports to the super user. (The solution on ec2 btw is creating a Load Balancer - directing the communications from port 80 to port 8080 on the target machine) Than - to my surprise - I went on and installed an Apache server on another machine (yum install httpd), and surprise! - Apache listens

Making a Fast Port Scanner

元气小坏坏 提交于 2019-12-31 10:48:53
问题 So I'm making a port scanner in python... import socket ip = "External IP" s = socket.socket(2, 1) #socket.AF_INET, socket.SOCK_STREAM def porttry(ip, port): try: s.connect((ip, port)) return True except: return None for port in range(0, 10000): value = porttry(ip, port) if value == None: print("Port not opened on %d" % port) else: print("Port opened on %d" % port) break raw_input() But this is too slow, I want to somehow be able to some how close or break code after a period of time of not

VirtualBox port forwarding not working with NAT adapter

旧街凉风 提交于 2019-12-31 09:20:49
问题 I'm trying simple port forwarding with VirtualBox and it appears VirtualBox.exe is listening on the host to the port, but not actually forwarding the connection to the guest. I've tried on multiple ports, and I've restarted VirtualBox several times. Guest to host connectivity, on the other hand, is fine. Here's the info: Host: Win7 x64 Guest: Win7 x64 VirtualBox version: VirtualBox 4.2.10 Firewalls: All firewalls on host and guest disabled. Virtual Box > Machine Settings > Network Adapter 1:

rsub with sublime and ssh connection refusual

末鹿安然 提交于 2019-12-31 08:43:55
问题 I am trying to use rsub to create tunnel in ssh to sublime text, I run the command rmate .profile but i get the following response. I am using wateroof to open the ports 52968 on 1p4 and ip6, I followed the insturctions here and its just not working I am running osx on my local machine and ubuntu 12.04 on my remote machine I am ssh into on digitalocean root@anderskitson:~# rmate .profile /usr/local/bin/rmate: connect: Connection refused /usr/local/bin/rmate: line 186: /dev/tcp/localhost/52698