fixed IPs back to local
This commit is contained in:
@@ -7,8 +7,10 @@ namespace RelayClient;
|
||||
|
||||
public class ServerAPI
|
||||
{
|
||||
static HttpClient client = new HttpClient { BaseAddress = new Uri("http://192.168.1.85:5000/") };
|
||||
static HttpClient core = new HttpClient { BaseAddress = new Uri("http://192.168.1.85:1337/") };
|
||||
static HttpClient client = new HttpClient { BaseAddress = new Uri("http://127.0.0.1:5000/") };
|
||||
static HttpClient core = new HttpClient { BaseAddress = new Uri("http://127.0.0.1:1337/") };
|
||||
// static HttpClient client = new HttpClient { BaseAddress = new Uri("http://192.168.1.92:5000/") };
|
||||
// static HttpClient core = new HttpClient { BaseAddress = new Uri("http://192.168.1.92:1337/") };
|
||||
|
||||
public static async Task setupClient()
|
||||
{
|
||||
|
||||
@@ -25,8 +25,8 @@ Console.WriteLine($"Kira created: {ToJsonString(kira)}");
|
||||
Console.WriteLine($"Test created: {ToJsonString(test)}");
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
// builder.WebHost.UseUrls("http://127.0.0.1:1337/");
|
||||
builder.WebHost.UseUrls("http://192.168.1.85:1337");
|
||||
builder.WebHost.UseUrls("http://127.0.0.1:1337/");
|
||||
// builder.WebHost.UseUrls("http://192.168.1.92:1337");
|
||||
builder.Services.AddSingleton(db);
|
||||
builder.Services.AddScoped<APIAuthService>();
|
||||
|
||||
@@ -88,9 +88,9 @@ partial class Program
|
||||
{
|
||||
// Set up listener
|
||||
using var listener = new HttpListener();
|
||||
listener.Prefixes.Add("http://localhost:8080/");
|
||||
listener.Prefixes.Add("http://127.0.0.1:8080/");
|
||||
listener.Start();
|
||||
Console.WriteLine("API Started: http://localhost:8080/");
|
||||
Console.WriteLine("API Started: http://127.0.0.1:8080/");
|
||||
|
||||
while (true)
|
||||
{
|
||||
|
||||
@@ -21,8 +21,8 @@ var bootstrapService = new ServerBootstrapService(db, coreClient, cryptoService)
|
||||
await bootstrapService.InitializeAsync();
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
// builder.WebHost.UseUrls("http://127.0.0.1:5000/");
|
||||
builder.WebHost.UseUrls("http://192.168.1.85:5000/");
|
||||
builder.WebHost.UseUrls("http://127.0.0.1:5000/");
|
||||
// builder.WebHost.UseUrls("http://192.168.1.92:5000/");
|
||||
|
||||
builder.Services.AddSingleton(db);
|
||||
builder.Services.AddScoped<RtcCallService>();
|
||||
@@ -32,8 +32,8 @@ var app = builder.Build();
|
||||
app.MapGet("/", () => "Server Running!");
|
||||
app.MapRtcEndpoints();
|
||||
|
||||
// var wssv = new WebSocketServer("ws://127.0.0.1:5001");
|
||||
var wssv = new WebSocketServer("ws://192.168.1.85:5001");
|
||||
var wssv = new WebSocketServer("ws://127.0.0.1:5001");
|
||||
// var wssv = new WebSocketServer("ws://192.168.1.92:5001");
|
||||
wssv.AddWebSocketService<ChatSocketBehavior>("/");
|
||||
RtcNotificationService.Server = wssv;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user