FAQ Database Discussion Community
ubuntu,docker,port,ipv6
I have docker host and inside I have one container. The docker host is binding the port on IPv6 interface only, not on IPv4. This is the output tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:55082 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN - tcp6...
mysql,ruby-on-rails,wordpress,port,migrate
I am in the process of creating a new website using the Rails framework. I would like to migrate the old blog posts from Wordpress into the new site. My initial thought is to get the blog database and migrate it to Rails using mysql. What would be the best...
java,networking,udp,port,google-compute-engine
my task is to receive UDP packets on an Google Compute Engine. Given is the port, which is 300 and I already have a simple Java program which can handle these UDP packets. My problem now. Get the UDP packets to my Java program. For that I don't know how...
linux,port,imap,firewall,iptables
I am working on a project that requires me to enable fetching of external mail through the IMAP protocol. I was wondering if there was any way to test this from for example imap.gmail.com without using telnet (as I have to enable the IMAP port and not telnet) ? I...
linux,kernel,port,nmap
When I scan myself I will often see random open ports: nmap -sT -T normal -p 1-65535 localhost E.g. 43194/tcp open unknown 58167/tcp open unknown Sometimes nothing, sometimes a couple like that. I see however that this has been a false positive before, but it is now very old: http://seclists.org/incidents/2002/Dec/136...
linux,centos,port,scp
If I want to copy file from server to my local OS I use this: scp -P 60385 [email protected]:/myserver/somefile.txt /mylocaladdress/. But how do I do the opposite? I tried this: scp /mylocaladdress/somefile.txt [email protected]:/myserver/. -P 60835 And this: scp /mylocaladdress/somefile.txt -P 60835 [email protected]:/myserver/. But I'm getting this error ssh: connect to...
java,spring,http,httprequest,port
I need to extract client's IP and port number when he makes a request to the servlet. Here's my controller code: @Controller public class IpCheckerController { String ip; @ResponseBody @RequestMapping(value = "/ipchecker", method = RequestMethod.GET) public String get(HttpServletRequest request, HttpServletResponse response) throws IOException { for (String header : HEADERS_TO_TRY) {...
c#,tcp,port,tcpclient,tcplistener
Consider the following code: void Connect(IPAddress address, int port) { TcpListener listener = new TcpListener(address, port); listener.Start(); TcpClient client= new TcpClient(); //The following line would actually block the caller, but ignore this fact ATM. var conn= listener.AcceptTcpClient(); client.Connect(address,port); var address = ((IPEndPoint)conn.Client.RemoteEndPoint).Address; var port = ((IPEndPoint)conn.Client.RemoteEndPoint).Port; } The port number...
mobile,localhost,port,webstorm
I can't access my Webstrom localhost on port 63342 from mobile. I opened the port in Windows firewall and ESET (but port online checkers say me that the port still close). I checked option "Can accept external connections" in Webstorm (but it caused message that Built-in HTTP server on...
shell,powershell,port,chocolatey
I created a PowerShell script which asks the user whether they want to install Chocolatey and then installs a bunch of applications and moves some files. I'm using this on the corporate network and sadly, the proxy settings that we use are posing a problem. When I execute the Chocolatey...
android,bluetooth,port
I'm new to android programming and to Bluetooth. I would like to send and receive data from my phone to an application on my computer that just connect to a PORT COM and can also send and receive data (like an UART). An exemple of such software (on the computer)...
linux,networking,port
Is there an auditing tool to check which and when ports are opened and closed on Linux? My goal is to run my application and check its ports usage. lsof or netstat don't fit because they just tell me which ports are currently opened, and looping on such command won't...
erlang,port
When erlang module communicates with a c program via a port it sends a packet to the c program my question is when i create a port using this configuration Port = open_port({spawn, ExtPrg}, [{packet, 2}]). what are the parameters sent in the packet ? what is the length of...
tcp,udp,port,iptables
Is it possible to convert all outgoing udp traffic from a gateway router to tcp on the same port with iptables. Have looked at mangle but unsure how I can use that.
powershell,virtual-machine,port,hyper-v,mirroring
I'm looking for a way to list all VM's on a machine by the type of mirroring they have set using PowerShell. For Example: Get-VM -PortMirroring Source And I'll see all VM's that have network adapters with Port Mirroring set to Source. But I know that Get-VM doesn't take PortMirroring...
javascript,node.js,port
I started using [cloud9][1] and trying to host my nodejs app. When I try to run my app it is throwing me following error: Important: use process.env.PORT as the port and process.env.IP as the host in your Important: use process.env.PORT as the port and process.env.IP as the host in your...
sockets,tcp,port,firewall,iptables
As far as i know only one process can be bound to a port of the same protocol, and in order to read incoming information to a port a socket must be bound to a that relevant port. is there a way of sharing a socket with another process or...
sockets,port
How to make system choose port no for me on the connect() call in c below is my code where i have used 5000 as port no the problem is every time i have to keep on changing the port no because it is throwing exception as ? listen: Address...
url,iis,port
In IIS, I noticed when you use the default ports (80 for http and 443 for https) the port number doesn't display at the end of the URL in your browser. However, if you use a different port it will display. Example: Default port generates link: http://www.example.com Custom port generates...
vbscript,port,serial-communication,usbserial,docklight
I am currently working on a script in docklight v2.0. My setup is the following: I have a splitter connected in the USB port of my PC. That splitter is connected on a wire on which a communication is made between 2 devices. Docklight is connected on the USB port...
smtp,port,plesk,centos7,smtp-auth
I have just moved my server to OVH Dedicated server and now having a problem with SMTP, which I need a bit of help with. SMTP is set on port 25, but when I am setting up my email client (MS Outlook 2010 or Android Email Client) I have notification...
sockets,port,bind
Why does this limitation exist? What is the technical reason for it? AFAIU, ports were introduced to distinguish between facilities (services, connections, etc.) of the same host, so logically the limitation is reasonable. However, SO_REUSEADDR exists to allow one-port-to-many-sockets binding, but not the other way round. It seems practical, because...
ubuntu,port,portforwarding,ssh-tunnel
Hello on Machine A I have a camera that with a webserver on port 60000 behind NAT that connects to Machine B using "autossh -M 0 -R 60000:localhost:60000 -p 5000 [email protected]_ip" (port 5000 is my SSH. On Machine B, I can see the server on localhost:60000 . I want to...
java,nginx,jar,docker,port
I'm trying to run a docker container that contains both a java jar server and nginx in front of it to perform subdomain->port forwarding, and I don't seem to be setting it up correctly. This is my Dockerfile: FROM java:8 MAINTAINER somefool RUN apt-get update RUN apt-get -y install nginx...
c,file,port
my text file is IP_CONFIG.txt "192.168.128.3" IP_CS "192.168.128.2" IP_HM "192.168.128.1" IP_OB "192.168.128.4" IP_AS "127.0.0.1" IP_RS "127.0.0.1" IP_RS_D "1901" PORT_CS "1901" PORT_HM "1901" PORT_OB "3567" PORT_AS "4444" PORT_RS "7777" PORT_RS_D My code is #include <stdio.h> #include <string.h> #include <stdlib.h> #define MAXWORDS 30 int main(){ FILE *fp; int i=0, j; char *words=NULL,*word=NULL,c;...
python,filter,port,scapy
I have got a simple sniff function set up with scapy which forwards the packet to a handshake function (I have a webserver set up on port 102. However some weird errors have come by, then I decided to print pkt.show(), what I discovered was that some packages DID come...
c++,port,multiplayer
There's lots of games on Steam nowadays (Table Top Simulator, SpeedRunners) that allows people to host their own online multiplayer matches/games without the need for port forwarding. One thing I thought of of how they do it is they simply have one server that processes all the matches as separate...
ubuntu,nginx,docker,port,iptables
I'm really struggling here and googled a lot... no solution worked so far. I'm running several docker containers (nodejs, mongodb,...) on my Ubuntu machine. Unfortunately, Docker (v1.6) exposes all ports to public! Since I have an nginx reverse proxy (also in a docker container), I only want port 80 to...
python,sockets,port
I was learning socket programme and want to connect with 21 port,so i open a software "FTPServer" which use the 21 post,but i still cannot connect 21. here is the code: import socket import sys s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) try: s.connect(('192.168.199.230',21)) print 'connect!' except socket.error,e: print 'cannot connect' print e sys.exit()...
ubuntu,jenkins,port
I see the option to change Jenkins HTTP port is by passing --httpPort=$HTTP_PORT when Jenkins is started. In Ubuntu the default installation, Jenkins is launched as a daemon up on start. Where do I set -httpPort in Ubuntu?
port,nas,synology
I would like to use a nginx front server on my Synology NAS for reverse-proxying pruposes. The goal is to provide a facade for the non-standard port numbers used by diverse webservers hosted the NAS. nginx should be listening on port 80, otherwise all this wouldn't make any sense. However...
node.js,wordpress,apache,port
I'm a newbie when it comes to server configurations. I have a node app already deployed on ec2 that redirects port 80 to 3000 using: sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000 Now I want to add a Wordpress blog in...
java,tcp,port,time-wait
I have a part in code that checks port availability (opens connection and immediately close it) : try{ new ServerSocket(currentConnector.getPort()).close(); } The porblem here is that the port enters a state of TIME_WAIT which differs from system to system. I want to make sure that after close() the port is...
c#,ftp,port
I am building an FTP server that will get images from a camera and store the photos in a local directory. I am having issues grabbing the file from the port given to me. Here is the conversation: Server(me):"220 Ready!" Client:"USER Guest" Server: "331 Username ok, need password" Client:"PASS "...
node.js,sockets,tcp,port,openshift
I have a working node.js server when it runs on localhost, i can send and receive data from my client (written in java). However, when i move the server.js to the VPS application at Openshift (free) the client can no longer connect to the server.js. I've uploaded the files as...
python,django,port
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...
php,url,curl,port,guzzle
I am using the latest version of guzzle. (from composer.json) "guzzlehttp/guzzle": "~5" (from composer.lock) "name": "guzzlehttp/guzzle", "version": "5.2.0", When I attempt to request (GET or POST) with a URL that contains a PORT number: $response = $client->get('http://www.hostdnshere.com:8888', array()); I get the following error: string(68) "cURL error 7: Failed to connect...
linux,apache,security,ssh,port
How open a port manually? I know that if I install apache opens port 80, ssh opens port 22 and that I can change port number in your configuration files. I was listening to people talk about open ports manually. How can I make this process? When should I do...
android,tcp,cmd,port
I need to use port 5037 under windows for adb (android). When I type: G:\AndroidSDK\platform-tools>adb nodaemon server It gives: cannot bind 'tcp:5037' This means that port 5037 is currently occupied... When I type: C:\WINDOWS\System32>netstat -ano | findstr "5037" It gives: TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 16836 TCP 127.0.0.1:5037 127.0.0.1:52818 TIME_WAIT 0...
node.js,heroku,port,host,codeship
I have a simple program which executes fine in localhost. var express = require('express'); var app = express(); app.get('/', function (req, res) { res.send('Hello World!'); }); var port = process.env.PORT || 8080; var host = "127.0.0.1"; var server = app.listen(port, host, function(){ console.log("Server running in : ",host ," with port...
svn,ssh,port
On my server I use another SSH port than 22. In my Smartgit GUI I can still access the svn repository by adding the port in the repo url, before I usedstandard port 22: svn+ssh://example.org/var/svn-repos/project/trunk Now I use for port 1234: svn+ssh://example.org:1234/var/svn-repos/project/trunk this works in Smartgit, but it doesn't if...
c#,sockets,listener,port
I am trying to connect to a sensor using network, the sensor's ip is 192.168.2.44 on port 3000; My Code: byte[] byteReadStream = null; // holds the data in byte buffer IPEndPoint ipe = new IPEndPoint(IPAddress.Parse("192.168.2.44"), 3000);//listen on all local addresses and 8888 port TcpListener tcpl = new TcpListener(ipe); while...
actionscript-3,sockets,flash,cross-domain,port
Let me introduce my problem step by step: I was using a socket connection on the address www.mydomain.com:1925 to provide a chat service for my users. When I moved to cloudflare, I could not connect to port 1925 directly because of the fact that my requests were reaching my origin...
java,network-programming,port,hsqldb
I am starting a HSQLDB server programmatically, however I am getting port conflicts when I try an run the HSQLDB server in conjunction with a web application that I am developing. I get the following error on the webapp side java.util.concurrent.ExecutionException: java.net.BindException: Address already in use: JVM_Bind & I get...
c++,swift,queue,port,grand-central-dispatch
I am porting some code from C++ to Swift that used Grand Central Dispatch, and I am finding a curious error with dispatch_queue_create seemingly not working at all. For instance, in my C++ base class header, I would declare dispatch_queue_t m_WorkQ; and in the initializer, put m_ResultQ = dispatch_queue_create("com.myapp.mHitsUpdateQueue", 0);...
docker,port,portforwarding,kubernetes
Is it possible to set a different host port than the container's exposed port in docker? For example docker run -name some_container -p 80:8080 -i -t some_img If so, is it -p host:container or -p container:host? I've looked through the docs and haven't found any examples of this nor details...
c++,windows,serial-port,port,parity
I'm not really experienced in programming but I'm trying to port a C++ code from Linux to Windows. It's a function which writes to serial port and reads the answer, which is then parsed. I could probably put this together but what I'm not sure about is how to port...
android,usb,port,devices
CODE IDEA: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE); HashMap<String,UsbDevice> stringUsbDeviceHashMap=manager.getDeviceList(); Log.e("asdadd", String.valueOf(stringUsbDeviceHashMap.size())); } 5310-5310/com.example.AppUSB E/asdadd﹕ 0 CMD ADB: C:\Users\Serg>adb devices List of devices attached DMJNPRCAP7IJGQFA device Why do I get 0 for the connected devices, if we have 1 single...
linux,ssh,port,server,server-configuration
I've got a reply from my server admin as "Do you need any ports open ?". On this server one website is hosted which is not getting loaded. So I conveyed him that the website is not getting loaded though I'm able to login to the given IP address through...
php,smtp,port,network-traffic
What are the dangers of opening port 25 to allow smtp traffic through? I have a windows server 2003 box which has port 25 blocked (Not by ISP), I know ISP's for usually block this port from use but as I need it for some php scripts I'm running that...
c++,c,port
I am attempting to convert a tool from C to C++ so I can compile as a CLR. I am a .NET guy so this is well outside my comfort zone. I have a compile error on the following line (tell me if this is not enough information): if (qvartype[...
ssh,port
When I connect to SSH I use port 22 as destination, but when the reply comes back, does it come in on port 22 as well? Or is the client source port randomly assigned as in other TCP communication? If set up a firewall allowing outbound traffic to port 22...
android,google-app-engine,tomcat,android-studio,port
I'm developing an android app with Google app engine endpoint using Android Studio. Is it possible to make the local app engine server open the port it is running on? I'm trying to debug an android application with a phone that is in the same LAN as my app engine...
javascript,ruby-on-rails,port,erb
I have a very strange problem with my rails 4.1.0 application. Inside local_env.yml I have a variable declared as: API_URL: 'http://api.myapp.com:3000' I use this variable in the javascript file app_ready.js.erb like so: var apiHost = '<%= ENV["API_URL"] %>' But for some reason when I call the page using this script...
listener,port,oracle12c
Normal when a client starts a session with a server. It starts on one port and then the remaining conversation takes place on port assigned it by the server I don't want to open that big of a port range on my firewall. So is there a way to configure...
java,eclipse,tomcat,servlets,port
I am working in a java web project in Eclipse IDE. project is working fine and we use Apache tomcat 7 as server. Now to access the application we use the URL as localhost:8080/APPNAME/. It works fine. In my project there is a servlet, that will request by other java...
c#,network-programming,port,plc
I want to establish a two-way communication setup between a PC and a s7-PLC. So far I've been successful setting this up one-way with the use of an open source driver found here: https://github.com/killnine/s7netplus This driver allows me to tell the PC to fetch data from the PLC, and also...
ios,tcp,port,mdm
I have an MDM with Profile Manager configured targeting iOS and OSX clients. Everything works fine in my home network. Now, I would like to apply this in my company. From Apple Support website: Port 2195, 2196 - TCP - Used by Profile Manager to send push notifications Port 5223...
delphi,usb,port
I'm using TJvHidDeviceController to detect my electronic device connection into USB port. After detection I need to know its port name to use in TComPort object. (It is a simple Caller ID device). How can I know the detected device's port name(I want to know com port. for example COM1...
udp,client-server,port,firewall,nat
If one application listens to the same private port number previously used by another application on that computer, will the more recent app get the same public port number as the less recent app? Application A and Application B both use non-multicast UDP. They both run on a computer that...
mongodb,database-connection,port
I just started with MongoDB on Windows 7. I can connect to port 27017, but I'm not getting the "admin web console waiting for connections on port 28017" message, so when I visit http://localhost:28017/, nothing appears. I get the following messages in the console: 2015-06-02T17:54:43.271-0700 I CONTROL Hotfix KB2731284 or...