SocketException: The requested address is not valid in this contextNot An Issue
so i did these step on other host and able to install the rust server finely but its not working and getting the error. i m following all the steps.dont know whats the problem.i have made the rules in aws for udp and tcp and all . 

included the log file . Thanks
Mono path[0] = '/home/rustserver/serverfiles/RustDedicated_Data/Managed' Mono config path = '/home/rustserver/serverfiles/RustDedicated_Data/MonoBleedingEdge/etc' Preloaded 'libRakNet.so' Preloaded 'libRustNative.so' eac_server.so [x64] :: OnLoad() Preloaded 'libeac_server.so' Preloaded 'libeasyanticheat.so' Preloaded 'libsteam_api.so' Preloaded 'libsteam_api.so' Preloaded 'steamclient.so' Unable to preload the following plugins: libRenderer.so Initialize engine version: 2019.3.5f1 (d691e07d38ef) [Subsystems] Discovering subsystems at path /home/rustserver/serverfiles/RustDedicated_Data/UnitySubsystems Forcing GfxDevice: Null GfxDevice: creating device client; threaded=0 NullGfxDevice: Version: NULL 1.0 [1.0] Renderer: Null Device Vendor: Unity Technologies Begin MonoManager ReloadAssembly - Completed reload, in 0.085 seconds WARNING: Shader Unsupported: 'Hidden/Internal-ScreenSpaceShadows' - Pass '' has no vertex shader WARNING: Shader Unsupported: 'Hidden/Internal-ScreenSpaceShadows' - Pass '' has no vertex shader Shader 'TextMeshPro/Distance Field': fallback shader 'TextMeshPro/Mobile/Distance Field' not found UnloadTime: 7.315259 ms 3D Noise requires higher shader capabilities (Shader Model 3.5 / OpenGL ES 3.0), which are not available on the current platform: graphicsShaderLevel (current/required) = 30 / 35 (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Bootstrap Startup Loading maps/maps.bundle (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Loading shared/content.bundle (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Loading shared/content.private.bundle (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Loading shared/items.preload.bundle (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Loading shared/monuments.bundle (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Loading shared/skinnables.preload.bundle (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) System Name: ip-172-31-24-106 OS: Linux 5.3 Ubuntu 18.04 64bit CPU Model: AMD EPYC 7571 Cores: 2 Memory: 7882 MB GPU Model: Null Device API: NULL 1.0 [1.0] Memory: 128 MB SM: 30 Process Memory: 0 MB Mono Collects: 41 Memory: 4 MB Manifest Metadata Loaded 15994 pooled strings 6781 prefab properties 388 effect categories 826 entity names Command Line: "./RustDedicated" "-batchmode" "+server.ip" "x.x.x.x" "+server.port" "28015" "+server.tickrate" "30" "+server.hostname" "Rust" "+server.identity" "rustserver" "+server.seed" "323" "+server.salt" "232" "+server.maxplayers" "50" "+server.worldsize" "2000" "+server.saveinterval" "300" "+rcon.web" "1" "+rcon.ip" "3.7.251.120" "+rcon.port" "28016" "+rcon.password" "******" "-logfile" "/home/rustserver/log/server/rustserver-game-2020-07-02-19:23:15.log" Command 'batchmode' not found server.ip: "3.7.251.120" server.port: "28015" server.tickrate: "30" server.hostname: "Rust" server.identity: "rustserver" server.seed: "323" server.salt: "232" server.maxplayers: "50" server.worldsize: "2000" server.saveinterval: "300" rcon.web: "True" rcon.ip: "3.7.251.120" rcon.port: "28016" Command 'rcon.password' not found Command 'logfile' not found Command 'batchmode' not found server.ip: "3.7.251.120" server.port: "28015" server.tickrate: "30" server.hostname: "Rust" server.identity: "rustserver" server.seed: "323" server.salt: "232" server.maxplayers: "50" server.worldsize: "2000" server.saveinterval: "300" rcon.web: "True" rcon.ip: "3.7.251.120" rcon.port: "28016" Command 'rcon.password' not found Command 'logfile' not found Server Config Loaded Skinnable Warmup Manifest Assets Loaded 93 skinnable objects Loading Scene HDR Render Texture not supported, disabling HDR on reflection probe. (Filename: Line: 277) Unloading 5 Unused Serialized files (Serialized files now loaded: 45) UnloadTime: 7.274786 ms Missing shader in Main Camera (TOD_Scattering) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in Main Camera (TOD_Scattering) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in Main Camera (TOD_Scattering) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in Main Camera (TOD_Rays) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in Main Camera (TOD_Rays) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in Main Camera (TOD_Rays) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Plugins: Couldn't open /home/rustserver/serverfiles/RustDedicated_Data/Plugins/libRenderer.so, error: /home/rustserver/serverfiles/RustDedicated_Data/Plugins/libRenderer.so: undefined symbol: glXGetProcAddressARB (Filename: Line: 306) Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/libRenderer Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/libRenderer.so Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/Renderer Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/libRenderer Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/libRenderer.so Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/libRenderer Unloading 348 unused Assets to reduce memory usage. Loaded Objects now: 30047. Total: 82.055379 ms (FindLiveObjects: 1.471942 ms CreateObjectMapping: 2.171246 ms MarkObjects: 78.029442 ms DeleteObjects: 0.381889 ms) Missing shader in effect - Screen Blur (UnityStandardAssets.ImageEffects.BlurOptimized) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - Cold (ScreenOverlayEx) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - Screen Blur (UnityStandardAssets.ImageEffects.ColorCorrectionCurves) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - Screen Blur (UnityStandardAssets.ImageEffects.ColorCorrectionCurves) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - Screen Blur (UnityStandardAssets.ImageEffects.ColorCorrectionCurves) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - Hurt (UnityStandardAssets.ImageEffects.VignetteAndChromaticAberration) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - Hurt (UnityStandardAssets.ImageEffects.VignetteAndChromaticAberration) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - Hurt (UnityStandardAssets.ImageEffects.VignetteAndChromaticAberration) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - Radiation (UnityStandardAssets.ImageEffects.ColorCorrectionCurves) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - Radiation (UnityStandardAssets.ImageEffects.ColorCorrectionCurves) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - Radiation (UnityStandardAssets.ImageEffects.ColorCorrectionCurves) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - Radiation (UnityStandardAssets.ImageEffects.NoiseAndGrain) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - Hurt (ScreenOverlayEx) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - Hot (UnityStandardAssets.ImageEffects.VignetteAndChromaticAberration) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - Hot (UnityStandardAssets.ImageEffects.VignetteAndChromaticAberration) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - Hot (UnityStandardAssets.ImageEffects.VignetteAndChromaticAberration) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - FXAA (FXAA) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - Water (UnityStandardAssets.ImageEffects.BlurOptimized) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Missing shader in effect - NVG (NVGEffect) (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) Asset Warmup (1/6303) Asset Warmup (521/6303) Asset Warmup (828/6303) Couldn't create a Convex Mesh from source mesh "patrol_helicopter_part02" within the maximum polygons limit (256). The partial hull will be used. Consider simplifying your mesh. (Filename: Line: 95) Asset Warmup (1615/6303) Asset Warmup (2720/6303) Couldn't create a Convex Mesh from source mesh "Old_Boat_GM" within the maximum polygons limit (256). The partial hull will be used. Consider simplifying your mesh. (Filename: Line: 95) Asset Warmup (2852/6303) Couldn't create a Convex Mesh from source mesh "ScrapHeliGibs_Part002" within the maximum polygons limit (256). The partial hull will be used. Consider simplifying your mesh. (Filename: Line: 95) Couldn't create a Convex Mesh from source mesh "ScrapHeliGibs_Part046" within the maximum polygons limit (256). The partial hull will be used. Consider simplifying your mesh. (Filename: Line: 95) Asset Warmup (3609/6303) HDR Render Texture not supported, disabling HDR on reflection probe. (Filename: Line: 277) Asset Warmup (4208/6303) Asset Warmup (4852/6303) Asset Warmup (5519/6303) Asset Warmup (6252/6303) Asset Warmup (6303/6303) Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/libKernel32 Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/libKernel32.so Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/Kernel32 Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/libKernel32 Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/libKernel32.so Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/libKernel32 SocketException: The requested address is not valid in this context at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x00043] in :0 at Fleck.SocketWrapper.Bind (System.Net.EndPoint endPoint) [0x00000] in :0 at Fleck.WebSocketServer.Start (System.Action`1[T] config) [0x00018] in :0 at Facepunch.Rcon.Listener.Start () [0x000de] in <0799d70729b04087b350d0851ab910a8>:0 at Facepunch.RCon.Initialize () [0x00104] in :0 at Bootstrap+d__19.MoveNext () [0x0005b] in :0 at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <7177b41a033a4f5591f89f18f64d312a>:0 UnityEngine.MonoBehaviour:StartCoroutineManaged2(IEnumerator) UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator) d__18:MoveNext() UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) (Filename: Line: 0)​
Sounds like your RCON configuration is not configured properly in your server configuration.
Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/libRenderer
Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/libRenderer.so
Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/Renderer
Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/libRenderer
Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/libRenderer.so
Fallback handler could not load library /home/rustserver/serverfiles/RustDedicated_Data/Mono/libRenderer

The actual error there is: SocketException: The requested address is not valid in this context

Something funky going on with your RCON configuration.
So i was installing the rust server and its not working .previously i have did the same steps and i have installed the rust server usign lgsm and it workign fine.but now its giving error when starting . i also tried on google server its not working .same error.
## Basic info

* **Distro:** [ Ubuntu 18.04.4 LTS ]
* **Game:** [RUST]
* **LinuxGSM version:** LinuxGSM - Rust - Version v20.3.3

## Further Information

SO when i am not doing anything after installation .server loads the file. but when i edit the default.cfg and paste it in common.cfg and put the ip and all the details and save it and try to start the server.server doesnt load gives the error i have given below.

## To Reproduce

Steps to reproduce the behaviour:
1. install dependencies in root and create user rustserver, make rustserver sudo user, and download lgsm and install it there
2. and then copy paste the _default.cfg stuff into common.cfg
3. and make the changes of ip and port and map size and all
4. do ./rustserver start and go to cd log/server do ls there and do tail -f logfilename
5. you will be presented by this error

## Expected behaviour

the error u will see after that installation stops 
Please see the above replies.
there is two setting only for rcon. rcon port and rcon password . i have done both . dont know what WHATS THE problem rightnow. i have changed the values there . -_-

Merged post

Command 'rcon.password' not found
Command 'logfile' not found 
this is also in the logfile .  but i have added the rcon password

Merged post

IF I put local host ip . the server installation goes fine. 
but when i put aws ip it doesnt work. 
Use the local IP. The public IP isn't bound to your machine.
yes thanks wulf . i fixed it . YOU are genius bro :)

Merged post

close the issue thanks
Locked automatically