Re: Too many connections.
I don't need that at all, I use cloudflare and it works great... Increase your limit if that's the issue.
Re: Too many connections.
I'm using cloudflare too.. The problem is that. If I increase the limit and I receive a DDoS on my proxy , on my emulator I've X connections. For example. I set up it a 10k conperip? If I receive a DDoS I will have 9k online or high random number. In counter of cms I'm using a count, but my problem is too that my CPU goes to an high usage.
Any other solution?
Inviato dal mio iPhone utilizzando Tapatalk
Re: Too many connections.
BUMP!
Inviato dal mio iPhone utilizzando Tapatalk
Re: Too many connections.
Having the same problem...
Re: Too many connections.
The solution would be, have 2 VPS servers, maybe a 1G to host your cms files, the other one a higher spec (depending on the size of your hotel) to host your database and emulator, no need for a proxy then if your VPS are ddos protected.
I am sure if you contact your provider they will be able to host both vps for you on the same node so you will have no lag issues between your cms and mysql connection.
Re: Too many connections.
Another solution is that insert your real ip in swf file, and in the connection.info.host your tcp proxy. It works fine for me..
Re: Too many connections.
You can do that, then when a user decides to use netstat or tcpview your ip address is open to anyone
Re: Too many connections.
Johno, is it common pratice for retros to use 2 vps?
Enviado do meu iPhone usando o Tapatalk
Re: Too many connections.
Quote:
Originally Posted by
Pedrofg
Johno, is it common pratice for retros to use 2 vps?
Enviado do meu iPhone usando o Tapatalk
Some hotels do, I know a few that we host (I cannot share links due to privacy) but they use 2 vps for hotels
Re: Too many connections.
[OT]
I'm currently have this issue:
Code:
Error in query:
c
MySql.Data.MySqlClient.MySqlException (0x80004005): PROCEDURE cms_int.c does not exist
at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)
at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()
at Plus.Database.Adapter.QueryAdapter.getInteger()
wtf?
Find solution.
However: reading stackoverflow I found this.
Code:
string header = Request.Headers["Via"] ?? Request.Headers["X-Forwarded-For"];
if (!string.IsNullOrEmpty(header))
{
// probably the request was forwarded from a proxy server
// but you cannot be 100% sure as HTTP request headers can be faked
}
Can it help us?
another method:
Code:
protected void GetUser_IP()
{
string VisitorsIPAddr = string.Empty;
if (HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] != null)
{
VisitorsIPAddr = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"].ToString();
}
else if (HttpContext.Current.Request.UserHostAddress.Length != 0)
{
VisitorsIPAddr = HttpContext.Current.Request.UserHostAddress;
}
uip.Text = "Your IP is: " + VisitorsIPAddr;
}
Re: Too many connections.
"PROCEDURE cms_int.c does not exist"
You are missing that