An attempt was made to access a socket in a way forbidden by its access permissions.

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
enghell
New to forums
New to forums
Posts: 14
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Aug 13, 2015 7:15 pm

An attempt was made to access a socket in a way forbidden by its access permissions.

Post by enghell »

While trying to install RustIO in a Managed instace i got this error, i contacted NFO staff and they said that this was a limitation on the managed system and shared, then i jumped to a extra Unmanaged to run Rust, since i love RustIO it's ver helpful, but while trying to get it working on a unmanaged i got this same error:

Code: Select all

[Error] Installing Rust:IO failed: An attempt was made to access a socket in a way forbidden by its access permissions.

  at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in <filename unknown>:0 
  at WebSocketSharp.Net.EndPointListener..ctor (System.Net.IPAddress address, Int32 port, Boolean secure, System.String certificateFolderPath, WebSocketSharp.Net.ServerSslConfiguration sslConfig, Boolean reuseAddress) [0x00000] in <filename unknown>:0 
  at WebSocketSharp.Net.EndPointManager.getEndPointListener (System.Net.IPAddress address, Int32 port, Boolean secure, WebSocketSharp.Net.HttpListener httpListener) [0x00000] in <filename unknown>:0 
  at WebSocketSharp.Net.EndPointManager.addPrefix (System.String uriPrefix, WebSocketSharp.Net.HttpListener httpListener) [0x00000] in <filename unknown>:0 
  at WebSocketSharp.Net.EndPointManager.AddListener (WebSocketSharp.Net.HttpListener httpListener) [0x00000] in <filename unknown>:0 
Has someone managed to install RustIO in a unmaged Instance, also how, have you get this error, how did you workarround it?
(Running Windows Server 2008 R2, 2 Cores and 3GB of Ram)
enghell
New to forums
New to forums
Posts: 14
Joined: Thu Aug 13, 2015 7:15 pm

Re: An attempt was made to access a socket in a way forbidden by its access permissions.

Post by enghell »

After many testing I found that A workaround is use widows server 2012 R2 or it could be using steam cmd without -beta experimental, I'll test more tomorrow and see which one is the real fix.
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: An attempt was made to access a socket in a way forbidden by its access permissions.

Post by Edge100x »

To clarify on our managed services, we don't currently know what causes that error. We haven't investigated in depth because we also don't allow sub-services that don't come with the base game like Rust:IO (which spawns a webserver), at least right now. In the future, we will be investigating further whether it is something that we can support (including what might cause the error on our systems).
enghell
New to forums
New to forums
Posts: 14
Joined: Thu Aug 13, 2015 7:15 pm

Re: An attempt was made to access a socket in a way forbidden by its access permissions.

Post by enghell »

After reisntalling windows 2008 R2 i got RustIO working, just installing it without -beta experimental in STEAMCMD, try to install your server without it and it will do the trick also in the shared system. You should allow RustIO it's one of the most popular Rust extensions ;D
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: An attempt was made to access a socket in a way forbidden by its access permissions.

Post by Edge100x »

Plugins that render maps tend to be very intensive in terms of CPU, memory, and I/O. Part of our consideration for Rust:IO will require determining how much we'd have to raise prices to cover the additional costs to us.
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: An attempt was made to access a socket in a way forbidden by its access permissions.

Post by soja »

Edge100x wrote:Plugins that render maps tend to be very intensive in terms of CPU, memory, and I/O. Part of our consideration for Rust:IO will require determining how much we'd have to raise prices to cover the additional costs to us.
Since I assume the heavy resource usage is temporary, would be possible to force the process that renders the map(if it is an additional process) low priority while it does its initial render?
Not a NFO employee
enghell
New to forums
New to forums
Posts: 14
Joined: Thu Aug 13, 2015 7:15 pm

Re: An attempt was made to access a socket in a way forbidden by its access permissions.

Post by enghell »

Yeh when the image is rendering you will see a fps drop to 5 or 10 in server but it only renders the image once every restart or every time you reload the plugin, which means that its just a temporal ussage.

Anyways for me it takes from 10-15 seconds with a standard 4000 size map. i could expect 30,45 seconds in the biggest size (8000)
enghell
New to forums
New to forums
Posts: 14
Joined: Thu Aug 13, 2015 7:15 pm

Re: An attempt was made to access a socket in a way forbidden by its access permissions.

Post by enghell »

After some extra testing

I find this (With RustIO Installed):
CPU Ussage at the initial server start phase = 100%
CPU Ussage After the initial server starting = 29%-33%
CPU Ussage While Reloading RustIO (oxide.reload RustIO) = 100%
CPU Ussage Average RustIO Reloading Time (100 Reloads) = 10 Seconds.
RAM Ussage While at the initial server start phase = 1.08 GB
RAM Ussage After the initial server starting = 1.5 GB

Initial start phase Average Time: 1min 30s

Without RustIO:
CPU Ussage at the initial server start phase = 100%
CPU Ussage After the initial server starting = 27%-33%
RAM Ussage While at the initial server start phase = 1.2 GB
RAM Ussage After the initial server starting = 1.5 GB

Initial start phase Average Time: 1min 27s


All the tests were done in a fresh installation of Windows 2008 R2 With 3GB of RAM, 2 Cores, CPU E5-2690.
enghell
New to forums
New to forums
Posts: 14
Joined: Thu Aug 13, 2015 7:15 pm

Re: An attempt was made to access a socket in a way forbidden by its access permissions.

Post by enghell »

For some reason i can't edit my post.

By CPU Ussage Average RustIO Reloading Time (100 Reloads) = 10 Seconds.
i mean Average RustIO Reloading Time (100 Reloads) = 10 Seconds.
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: An attempt was made to access a socket in a way forbidden by its access permissions.

Post by Edge100x »

If the usage isn't high, we likely would not have to raise prices significantly. We'll certainly explore it further when we do the full investigation.
enghell
New to forums
New to forums
Posts: 14
Joined: Thu Aug 13, 2015 7:15 pm

Re: An attempt was made to access a socket in a way forbidden by its access permissions.

Post by enghell »

Great :) I'll be Unmanaged until I hear that you support it and then switch back it to my Managed instance
Post Reply