Companion server failed to start
hi i get follow error on my server but i really dont know what it means 

 Companion server failed to start: System.Net.Sockets.SocketException (0x80004005): Access denied
  at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x00043] in <ae22a4e8f83c41d69684ae7f557133d9>:0 
  at Fleck.SocketWrapper.Bind (System.Net.EndPoint endPoint) [0x00000] in <f1ab979dad39453bb3ab99ae17860fb2>:0 
  at Fleck.WebSocketServer.Start (System.Action`1[T] config) [0x00018] in <f1ab979dad39453bb3ab99ae17860fb2>:0 
  at CompanionServer.Listener..ctor (System.Net.IPAddress ipAddress, System.Int32 port) [0x000a8] in <fe8f45fbfccd4e6f916ad0e590a44ac3>:0 
  at CompanionServer.Server.Initialize () [0x00037] in <fe8f45fbfccd4e6f916ad0e590a44ac3>:0
(20:19:30) | Server startup complete​
It means what it says:
Companion server failed to start​
I have the same exact issues and still cant get it to work tried everything
Hi Ryan, Thanks for the response. I should have put more detail into all that I have tried but at this point I'm just ready to give up.  I guess I will give it a final go. So, I use hosting for the server and they contacted me and said RUST+ now available, all that I would need to do is "check mark enable rust+ in my panel settings ( which I did ) and also either reinstall the game server OR buy a dedicated IP for extra 10.00. I decided to reinstall the game server and still no rust + . When I'm in game I try to launch Rust+ and the f1 console reports back stating " steam rejected companion request". I contacted the support team for my hosting and all that they are replying with is " RUST+ is working fine, All you need to do is restart the server or reboot".  I have tried this many times with same results.  I contacted a few members here and asked for help which included suggestions of adding a few things to my main batch CFG file. The odd part also is on my server files the SERVER.CFG file is empty as I use a plugin by WULF called Startup Commands. In the Startup Commands JSON file I have added the following things in the proper JSON format server.ip, server.port,app.listenip,app.publicip,app.port, rcon.ip,rcon.port but then get crazy errors upon reboot. Please look at next message as I'm running out of characters here. 

Merged post

Continuation:  For the above commands I tried to enter into Startup Commands JSON file, I used Server.IP (my server ip XX.XX.XX.XX), server.port ( my server port 2050), app.listenip(my server ip XX.XX.XX.XX),app.publicip(my server ip XX.XX.XX.XX),app.port ( I tried putting 28015 according to RUST+ Wiki). I don't know what the hell I'm doing wrong and why this is not working for me.  With the above changes, I'm getting this error below

SocketException: The requested address is not valid in this context
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x00043] in <ae22a4e8f83c41d69684ae7f557133d9>:0
at Fleck.SocketWrapper.Bind (System.Net.EndPoint endPoint) [0x00000] in <f1ab979dad39453bb3ab99ae17860fb2>:0
at Fleck.WebSocketServer.Start (System.Action`1[T] config) [0x00018] in <f1ab979dad39453bb3ab99ae17860fb2>:0
at Facepunch.Rcon.Listener.Start () [0x000de] in <7615e80d275641e092c575dc17c6ff2b>:0
at Facepunch.RCon.Initialize () [0x00112] in <fe8f45fbfccd4e6f916ad0e590a44ac3>:0
at Bootstrap+<StartServer>d__19.MoveNext () [0x0005b] in <fe8f45fbfccd4e6f916ad0e590a44ac3>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <7177b41a033a4f5591f89f18f64d312a>:0
UnityEngine.MonoBehaviour:StartCoroutineManaged2(IEnumerator)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
<DedicatedServerStartup>d__18:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
5d66db4201195.jpg?uid=5d66db72ac9cd RyanFromRust
Did you set your app.port to your game port number +67, or your RCON port number +67 (whichever is the larger number).

See here https://wiki.facepunch.com/rust/rust-companion-server
I have not tried to set my app.port to +67 of my port number as I read on the WIKI that the app.port has to be over 10000, in my case my actual port to server is 2050 so +67 would make it 2117 (which is below 10000) so I figured that wouldn't work. Lost for works at this point. 
The server.cfg handles a lot of settings, but the start.bat file configures additional 'core' settings. If you were hosting yourself at home, you'd see the start.bat. When on hosted, they often keep control of that file (not at low.ms). You might have access to this if your host's control panel has a "Command-line Manager" button, or something similar.

Ask your host to change the start.bat file query, rcon, and app ports to something above 10,000 so that you can do what the instructions on wiki.facepunch.com tell you to do. It's weird that your server host emailed you telling you it's working when they haven't configured it like facepunch says to.

Your server host charges you for a static IP?? So does everyone always complain that their favorited server keeps disappearing?
You can set your app.port to any random 5-digit number (it won't work with 4 digits). When you don't set any specific number then it defaults to +67.

The host probably has a shared IP address system where multiple customers use the same (static) IP but with different port numbers. This is why he has a custom game port number. They are offering a dedicated IP for extra cash, if he wants one, so that he can choose his own (game) port number.

@v0dqa if I were you I would:

a) Remove the startup plugin
b) Add the following line to server.cfg:
app.port "12345"
c) Restart the server and see if Rust+ works
5c5339bb3cef3.png JimDeadlock
You can set your app.port to any random 5-digit number (it won't work with 4 digits). When you don't set any specific number then it defaults to +67.

The host probably has a shared IP address system where multiple customers use the same (static) IP but with different port numbers. This is why he has a custom game port number. They are offering a dedicated IP for extra cash, if he wants one, so that he can choose his own (game) port number.

@v0dqa if I were you I would:

a) Remove the startup plugin
b) Add the following line to server.cfg:
app.port "12345"
c) Restart the server and see if Rust+ works

Jim! Thanks for the reply, I have tried this and get the same results . F1 console shows "companion server rejected our steam ticket". I'm just going to switch hosting providors or I will pay this 10.00 to see if that changes anything. Appreciate the help!

Don't pay the $10. Go to low.ms. (GTX is good but they have billing issues. I've have about 8 providers)
Thanks again for the response. I have looked into many hosting sites, the two you mentioned above are both very pricing about 40.00/usd a month for 100 slots , 30gb memory , ssd, dedicated ip. Currently now, I'm paying 16.00 without the dedicated IP and 26 with dedicated IP.  The hosting I'm using now gives me RAM: 32 GB,CPU: 8x3.4 GHz,Storage: 320 GB SSD, with unlimited bandwith and traffic....BUT RUST + DONT WORK!~~~~ That damn tool is a must have~~!!! 

Thanks again everyone~
The hosting site I mentioned starts at $10/mo.
  • You don't need 32GB of memory.
  • You don't need an eight core cpu (Rust is mono-threaded, but I've heard it could use two cores).
  • You don't need 320GB of SSD, only about 60GB for the system OS and the game.
  • No hoster offers unlimited bandwidth.
  • Maybe the computer you're on (with what, 5-15 other people?) has those specs. Do you rent those specs as a dedi? That's all yours? For $16/mo?!
  • Every other host besides yours has Rust+ working.
  • And they didn't send out an email saying they did.
  • If you don't reach over 100 players you don't need to pay for a 100 player limit. You can just rent what you want and set server.maxplayers 200 at startup.

If you had that much pop, you would have paid for the game. That's lame that you wasted so much of our time on one of the only games that is worth paying for.     

>:-C

Don't be so quick to jump to conclusions big guy. Months ago I was attempting to reverse some code to make it possible where rusticL and Official clients could join vice versa, hence for reasons I had rustclient in added library on steam, I knew I bought the game as I do all my steam stuff but removed it from my library and did the " add non steam game". After I sent you the "private" message about how I just realized I been loading the damn client instead of official , I went to go " purchase" and what ya know , this game was already in my files. I loaded it up with the official added to library, fixed the Launch options and attempted to connect to server and at first go RUST+ immediatly took off. This was due to the help of the many people who responsed to me here including yourself. When I bought this game during when rust added chinook heli event an at that time there were a few servers in which a rusticL user and and official user could join. When I realized , I was never going to find out how to do this, I stopped. Time-lapse to now as the pandemic hit , many lost their work, including myself . This is where I got free time and decided to re fiddle around again. You see, I didn't need to explain everything like I just did to you, but I figured I would since you immediatly came here to public forum and started defacing my name and that I waisted everyones time including yours.  

As far as your hosting suggestions, I agree with alot of what your saying but don't shoot the messenger , I relayed what the server info relays to their customers . Yes, I'm sure alot of it is bs, but hell I didn't come here for a debate, nor did you have to answer any of my questions ( since I waisted everyones time). 

Cheers

"I was attempting to reverse some code to make it possible where ###!!! and Official clients could join vice versa"
You were trying to hack. Adding non-steam games into Steam is obviously pretty 'sus. Why use the Steam Network at all for those?? Eh??

"fixed the Launch options"
What are you doin' with Steam launch options for Rust in 2020? This isn't 2016 Rust. "I'm just reloading a hack game I had from 2016 and not updating it all and complaing about stuff not working."

After I sent you the "private" message about how I just realized I been loading the damn client instead of official , I went to go " purchase" and what ya know , this game was already in my files. I loaded it up with the official added to library, fixed the Launch options and attempted to connect to server and at first go RUST+ immediatly took off.
The private message you sent me was you saying "Doh, I had the hacked client running!" I don't need to lie on this site. I just help everyone.

Time-lapse to now as the pandemic hit , many lost their work, including myself.
Sorry you lost your job. Going back into hacking isn't really a guilt trip I fall for with that whole false narrative 'pity me' BS. FU.

You see, I didn't need to explain everything like I just did to you, but I figured I would since you immediatly came here to public forum and started defacing my name and that I waisted everyones time including yours.
You're a hacker PoS. @v0dqa is a hacker PoS and came to uMod complaining about the new companion app failing to start on his hack client with a fucktard server host that only a moron would choose! Waisted! Lol! Waste not, want not.

This was due to the help of the many people who responsed to me here including yourself.
It was rilly only Jim and I. And Jim is, ace duece, a smart and cool dude. But just wait, you'll use this point against me when you say:

Yes, I'm sure alot of it is bs, but hell I didn't come here for a debate, nor did you have to answer any of my questions ( since I waisted everyones time).
But YOU did come here. Right? So when we instantly respond, follow up, and try to help, that's also our bad too, huh?????


Don't support this guy if he has questions.