Ability to Bind Server IP Address


#1

I would like to see ability to bind server IP address in server configuration

For example without bind you cannot start two servers on same port

123.456.78:32120
123.456.79:32120

Server will return

2017-05-14 02:41:08.1842|INFO|CitizenMP.Server|Starting HTTP server on port 32120
System.IO.IOException: Failed to bind to address http://+:32120: address already in use. ---> System.AggregateException: One or more errors occurred. ---> Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvException: Error -98 EADDRINUSE address already in use
at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.ThrowError (System.Int32 statusCode) [0x00007] in <d02ee77e64564b1bb5463c0c84443484>:0 
at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.ThrowIfErrored (System.Int32 statusCode) [0x00004] in <d02ee77e64564b1bb5463c0c84443484>:0 
at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.tcp_getsockname (Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvTcpHandle handle, Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.SockAddr& addr, System.Int32& namelen) [0x00016] in <d02ee77e64564b1bb5463c0c84443484>:0 
at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvTcpHandle.GetSockIPEndPoint () [0x00006] in <d02ee77e64564b1bb5463c0c84443484>:0 
at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.TcpListener.CreateListenSocket () [0x0004b] in <d02ee77e64564b1bb5463c0c84443484>:0 
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00014] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00052] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
at System.Threading.Tasks.Task.Wait () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelEngine.CreateServer (Microsoft.AspNetCore.Server.Kestrel.ServerAddress address) [0x000c6] in <d02ee77e64564b1bb5463c0c84443484>:0 
--- End of inner exception stack trace ---
at Microsoft.AspNetCore.Server.Kestrel.KestrelServer.Start[TContext] (Microsoft.AspNetCore.Hosting.Server.IHttpApplication`1[TContext] application) [0x00201] in <d02ee77e64564b1bb5463c0c84443484>:0 
e[?1le>e[39;49m

Without Bind server post to all available ip address on dedicated server.

My suggestion is to add

ListenPort: 30120
ListenIP: 123.456.78

#3

Please read my post again …

Anyway I saw that this feature is added under new FXServer. Thanks to the developers.


#4

I apologize I misread it