Skip to content

Commit

Permalink
Specify port
Browse files Browse the repository at this point in the history
  • Loading branch information
judah4 committed Nov 2, 2022
1 parent c2bab02 commit 3cdb781
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Mmo Game Framework/MainServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;

namespace MmoGameFramework
{
Expand Down Expand Up @@ -127,6 +128,7 @@ private static WebApplication BuildHost(string[] args)
{

var builder = WebApplication.CreateBuilder(args);
builder.WebHost.UseUrls("http://*:3000");
builder.Logging.AddSimpleConsole(options =>
{
options.IncludeScopes = true;
Expand Down

0 comments on commit 3cdb781

Please sign in to comment.