Questions tagged [tcp-port]
25 questions
35
votes
5 answers
get open TCP port in Python
I want to get any random open TCP port on localhost in Python. What is the easiest way?

Albert
- 65,406
- 61
- 242
- 386
13
votes
7 answers
IPAddress.Parse() using port on IPv4
I'm trying to parse a string containing an IP address and a port using IPAddress.Parse. This works well with IPv6 addresses but not with IPv4 addresses. Can somone explain why this happens?
The code I'm using is:
IPAddress.Parse("[::1]:5");…

Francisco Silva
- 530
- 1
- 7
- 21
4
votes
1 answer
Logstash doesn't start. Error: "Could not start TCP server: Address in use"
Logstash doesn't start. It says following:
:message=>"Could not start TCP server: Address in use", :host=>"0.0.0.0", :port=>1514, :level=>:error}The error reported is: \n Address already in use - bind - Address already in use"}
In logstash…

iurie bogdanovici
- 123
- 2
- 6
3
votes
2 answers
How to find number of ephemeral ports in use?
I have a situation where I am running into ephemeral port exhaustion, which is then causing exceptions. I would like to throttle the connections to avoid this. Is there a way to detect the number of ephemeral ports in use?
Thanks,
Erick

Erick T
- 7,009
- 9
- 50
- 85
2
votes
1 answer
Get port from flask localhost app running in a subprocess Popen process
I am running a flask server on localhost from within a subprocess.Popen process.
I want to know what port was allocated to the flask server in this process without blocking the calling process. I would then use the localhost:port to talk to the…

Anand
- 3,690
- 4
- 33
- 64
2
votes
1 answer
Access to custom TCP Rule in AWS EC2
I had created a custom TCP rule in aws EC2 server. And the inbound and the outbound rules for the rule is anywhere mean anyone can access the port.
But the port is not enabled. I was getting a problem like port is closed whenever I tried to check…

Antony Sampath Kumar Reddy
- 133
- 2
- 11
1
vote
2 answers
Stop NebulaGraph From Using Cassandra Ports
Problem
Please let me know how I can improve this question in the comments below!
How do I stop NebulaGraph Docker Desktop Extension from using the TCP-Port: 7001?
I know how to manually stop NebulaGraph by toggling on the extension to show its…

Zach
- 539
- 1
- 4
- 22
1
vote
0 answers
Why does a Swagger UI, managed by Docker, stop working? (ERR_CONNECTION_REFUSED)
I'm working on a Docker related C# program.
Normally, when I launch it, it shows the Swagger UI, but this time, in the internet browser, I just see "localhost refused to connect", mentioning ERR_CONNECTION_REFUSED.
The so-called "details" are a…

Dominique
- 16,450
- 15
- 56
- 112
1
vote
1 answer
Not able to access EC2 custom port from remote machine
I have hosted web application (developed in PHP) on Amazon EC2 micro instance. As per default setting, i can access 80, 22, 443 and 3306 ports from remote locations means from Home(terminal window) using telnet command.
I want to open another…

user3001812
- 87
- 1
- 4
1
vote
0 answers
Can I remap port numbers for cloud compute instances such as from port 502 to 1502
I have some IoT devices that uses modbustcp on port 502. I have a communications solution running on windows that I would like to use on some google compute instances.
Since ports below 1024 is nogo unless being elevated (sudo) then I have been…

Laro88
- 11
- 3
1
vote
0 answers
Wired data communication among android tablet and peripheral device
I have wireless TCPIP stack written for communication.
Now I want the wired data serial-communication from the android tablet to device (bidirectional data communication) using USB OTG cable. How do i achieve it ?
I have written some module using…

mask
- 6,172
- 3
- 24
- 23
0
votes
1 answer
Docker connect to TCP port 1433 Erratically throws error "1433 An attempt was made to access a socket in a way forbidden by its access permissions "
At work, we have a Docker Compose YAML file will allow the programmer to run an MS SQL Server-based docker image as a container.
Please keep in mind that there are configurations for 3 images ( 2 Database images & 1 Hasura GraphQL image ) in said…

crazyTech
- 1,379
- 3
- 32
- 67
0
votes
1 answer
AKS Nginx controller tcp port
I have 1 AKS clusters with multiple services and 1 ingress controller
I have a requirement for 1 of the service to listen to tcp on port 11112
Below is my deployment file
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
…

Apurv Mishra
- 65
- 1
- 7
0
votes
1 answer
I am trying to automate the config of TCPPort number 1433 on SQL Server 2016 and 2019 with a PS script
Inspired by this approach:
$pcName = $env:COMPUTERNAME
($dbmsName = Invoke-Sqlcmd -Query "SELECT @@servicename")
# Loading SQLPS environment
Import-Module SQLPS -DisableNameChecking -Force
# Initializing WMI object and Connect to the instance…

Houssein Kemel
- 51
- 9
0
votes
0 answers
An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full - perforamce issue
I am facing application performance issue because of "An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full" error.
Basically application flow is 1.Application hits to web API…

Rajesh Somvanshi
- 45
- 1
- 6