ports

Docker: MacOSX Expose Container ports to host machine

拟墨画扇 提交于 2019-11-29 12:06:14
问题 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

How to connect to an open tcp port on client machine from an unknown server?

大憨熊 提交于 2019-11-29 11:43:23
I have been reading a lot about different NAT traversal techniques, but I am still a little unclear about how it works. If I open a TCP port on a client machine and send a request to some arbitrary nonexistent server (which won't respond), my client NAT will now have an open channel, correct? Can I then use another (unknown) computer at a different IP address to access that client port if I know both the public and private IP of the client as well as the port number? Or will my NAT check where my server packet is coming from and block it since it is not from the same IP address as the original

Identifying listening ports using Python

吃可爱长大的小学妹 提交于 2019-11-29 10:32:07
问题 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

Open a COM port in C++ with number higher that 9

别来无恙 提交于 2019-11-29 04:14:57
I am using a COM port in C++. I can not open COM ports with a higher number than 9, for example 10. This is function used for COM port detection: WCHAR port_name[7]; WCHAR num_port[4]; for (i=1; i<256; i++) { bool bSuccess = false; wcscpy(port_name,L"COM"); wcscat(port_name,_itow(i,num_port,10)); HANDLE hPort; //Try to open the port hPort = CreateFile(L"COM10", GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0); //hPort = CreateFile(port_name, GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0); if (hPort == INVALID_HANDLE_VALUE) { DWORD dwError = GetLastError(); //Check to see if

How do ports work with IPv6?

安稳与你 提交于 2019-11-28 18:04:09
Conventional IPv4 dotted quad notation separates the address from the port with a colon, as in this example of a webserver on the loopback interface: 127.0.0.1:80 but with IPv6 notation the address itself can contain colons. For example, this is the short form of the loopback address: ::1 How are ports (or their functional equivalent) expressed in a textual representation of an IPv6 address/port endpoint? Nico They work almost the same as today. However, be sure you include [] around your IP. For example : http://[1fff:0:a88:85a3::ac1f]:8001/index.html Wikipedia has a pretty good article about

Use SQL Server Management Studio to connect remotely to an SQL Server Express instance hosted on an Azure Virtual Machine

强颜欢笑 提交于 2019-11-28 16:58:42
问题 Initial Attempt I have an Azure VM with Windows Server 2012, on which I just installed SQL Server 2012 Express Database Engine component. Then, I followed the instructions here to connect remotely with SQL Server Management Studio. Create a TCP endpoint for the virtual machine Open TCP ports in the Windows firewall Configure SQL Server to listen on the TCP protocol Configure SQL Server for mixed mode authentication Create SQL Server authentication logins Determine the DNS name of the virtual

How to configure Apache Spark random worker ports for tight firewalls?

二次信任 提交于 2019-11-28 08:45:28
I am using Apache Spark to run machine learning algorithms and other big data tasks. Previously, I was using spark cluster standalone mode running spark master and worker on the same machine. Now, I added multiple worker machines and due to a tight firewall, I have to edit the random port of worker. Can anyone help how to change random spark ports and tell me exactly what configuration file needs to be edited? I read the spark documentation and it says spark-defaults.conf should be configured but I don't know how I can configure this file for particularly changing random ports of spark. check

How do I redirect from Apache to Tomcat?

早过忘川 提交于 2019-11-28 03:12:14
I'm working on my first Java site. I'm running Apache Tomcat on port 8080, and Apache HTTPD on port 80. The current URL that I can access the site at is (for example) 123.4.5.6:8080. I want to remove the port number from the URL before I point the domain at the new IP. At the moment I am only using Apache for phpmyadmin, however I plan on using it for CGI scripts and other stuff once I figure out mod_jk etc... So I don't want to change Tomcat's port to 80 and turn off Apache. I hope this makes sense. The correct way to do things is to leave Apache at 80 and Tomcat at 8080 and use a plug in

Boot2Docker: can't get ports forwarding to work

纵然是瞬间 提交于 2019-11-27 15:50:43
I'm playing with boot2docker (docker 1.6) on windows 8.1. I wanted to make myself machine container to play with ruby and I want to be able to connect to rails server from my windows host. To start with small steps first I want to connect to my container from my boot2docker VM. I attach my docker file below, it builds without a problem and I can run a container from it. I do it like so: docker run -it -p 3000:3000 3564860f7afd /bin/bash Then in this container I say: cd ~/myapp && bundle exec rails server -d And to see if everything is working I do: ~/myapp$ sudo apt-get install wget && wget

How to open some ports on Ubuntu?

谁都会走 提交于 2019-11-27 13:29:40
问题 I know little about Linux.Today I create a VPN server on My ubuntu according to https://github.com/philplckthun/setup-simple-ipsec-l2tp-vpn But when I finish the installation. I use my iphone to connect the ipsect vpn,bur it shows the VPN Server has no response. The github document shows Ports 1701, 500 and 4500 must be opened for the VPN to work! So I have tried to open these ports on my ubuntu server. I use "iptables" command to open these ports.but it failed.Maybe I don't known how to use