ports

Port Stuck in Time_Wait

删除回忆录丶 提交于 2019-12-10 15:59:27
问题 I have a TCP Tunnel in C#. I need to open and close the tunnel which is my app between a server and a client. I'm using this to close the data connection to test out another app. I have to use particular ports. On the second, third, nth connection depending on how long I wait to reconnect, I receive a 10048 error code - "Address already in use" when binding my socket. When closing the sockets, I do perform ShutDown.Both and Close in hopes of clearing out the ports, but when I do a netstat in

RS232 library for .net core

家住魔仙堡 提交于 2019-12-10 12:45:41
问题 We are developing applications in .Net Core and one of them require to access a serial port. As I learned that System.IO.Ports won't be implemented in .Net Core, I was looking for a nuget library that supplies that functionality, but couldn't get one compatible with .net core (VS Code is showing an error message). Is there any alternative out there? UPDATE : I found that the official SerialPort API is being taken into consideration for porting to .Net Core (see https://github.com/dotnet

Dokku: Expose two ports from an application

北战南征 提交于 2019-12-10 10:24:51
问题 I am trying to deploy a Scala based application to dokku, the application runs a http server and a customised sshd server. The problem I have is it seems that dokku only supports one port for the application. I need dokku to expose both my applications ports to the web. In docker this is possible and quite straight forward to do, but when I implement the same technique in the dokku file, I get an error. Any suggestions on allowing two ports to be accessible? 回答1: Since this is, after all,

Amazon AWS EC2 ports: connection refused

谁说我不能喝 提交于 2019-12-10 03:54:47
问题 I have just created an EC2 instance on a brand new AWS account, behind a security group, and loaded some software on it. I am running Sinatra on the machine on port 4567 (currently), and have opened that port in my security group to whole world. Further, I am able to ssh into the EC2 instance, but I cannot connect on port 4567. I am using the public IP to connect: shakuras:~ tyler$ curl **.***.**.***:22 SSH-2.0-OpenSSH_6.2p2 Ubuntu-6ubuntu0.1 curl: (56) Recv failure: Connection reset by peer

Trouble trying to receive data from a serial port

拜拜、爱过 提交于 2019-12-08 06:24:05
问题 Hi I have a port connected to my pc which is sending data constantly and my objective is to receive data from it and print it out. The problem is I don't really know what type of data it's sending and how should I read it... private void Button_Receive_Data_Click(object sender, EventArgs e) { GroupBox_Serial_Transmit.Enabled = false; #region string Port_Name = ComboBox_Available_SerialPorts.SelectedItem.ToString(); int Baud_Rate = Convert.ToInt32(ComboBox_Standard_Baundrates.SelectedItem);

When writting a networked application, how do I choose a good port number?

时光毁灭记忆、已成空白 提交于 2019-12-08 04:07:25
问题 I'm writing a network application that will be using a defined port communication. Is there a best practice for picking which port number to standardize my default port on? 来源: https://stackoverflow.com/questions/4501518/when-writting-a-networked-application-how-do-i-choose-a-good-port-number

Trouble trying to receive data from a serial port

那年仲夏 提交于 2019-12-06 15:38:42
Hi I have a port connected to my pc which is sending data constantly and my objective is to receive data from it and print it out. The problem is I don't really know what type of data it's sending and how should I read it... private void Button_Receive_Data_Click(object sender, EventArgs e) { GroupBox_Serial_Transmit.Enabled = false; #region string Port_Name = ComboBox_Available_SerialPorts.SelectedItem.ToString(); int Baud_Rate = Convert.ToInt32(ComboBox_Standard_Baundrates.SelectedItem); COMport = new SerialPort(Port_Name, Baud_Rate); #endregion COMport.ReadTimeout = 3500; //3.5 sekundes try

How to “unbind” a socket programmatically?

那年仲夏 提交于 2019-12-06 09:32:13
问题 1) The socket doesn't seem to unbind from the LocalEndPoint until the process ends. 2) I have tried the solutions from the other question, and also tried waiting a minute - to no avail. 3) At the moment I have tried the below to get rid of the socket and its connections: public static void killUser(User victim) { LingerOption lo = new LingerOption(false, 0); victim.connectedSocket.SetSocketOption(SocketOptionLevel.Socket,SocketOptionName.Linger, lo); victim.connectedSocket.Shutdown

Multiple websites on same IP with different ports withIIS [closed]

筅森魡賤 提交于 2019-12-06 03:38:42
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . I had some test sites setup on a server that had one IP and utilized different ports for the site like this. www.acme.com:5000 www.acme.com:6000 This worked great until a SSL certificate was installed on the server. Now the sites above are not coming up. How do I configure them so that they come up again? 回答1:

How can I check if ports 465 and 587 are open with PHP?

…衆ロ難τιáo~ 提交于 2019-12-04 16:35:28
问题 I'm trying to use PHPMailer to send e-mails with SMTP and gmail. The exact script am using works on other servers but it is not working on this particular hosting company's server. I have checked the phpinfo() and it tells me that allow_url_fopen is on and there are no disabled_functions like fopen listed. The script fails and it tells me either: SMTP -> ERROR: Failed to connect to server: Connection timed out (110) or else SMTP Error: Could not authenticate. I'm assuming this is because it