Code Monkey home page Code Monkey logo

siebrum / minecraft-server-discovery Goto Github PK

View Code? Open in Web Editor NEW
55.0 5.0 10.0 321 KB

Tool to discover minecraft servers all over the internet and visualize them in a web application. Written in C# and Angular

C# 47.03% JavaScript 2.84% TypeScript 36.30% HTML 8.23% SCSS 3.09% Dockerfile 2.51%
discovery discovery-service minecraft minecraft-server scanner server-discovery minecraft-scanner minecraft-server-discovery minecraft-server-finder minecraft-server-scanner

minecraft-server-discovery's Issues

Searcher isn't starting

I launched the thing with "ng serve" but the searcher isn't starting, I refresch after hours..... Nothing :/ Did I something wrong or is it a bug

How to start scanning?

I installed docker and run the docker compose up, it started the GUI on the localhost port 80 which I can access. but I don't understand how do I start scanning? there's no website or anything on the port 5000 or 500, I tried both. and the README.MD doesn't explain this part of the process well.

Niether MasscanWrapper or the discoveryAPI works.

The different programs need different versions of .NET, so I don't even see how you would be able to run both of them at the same time in a simple way. So I started with only trying to get the MasscanWrapper to work.

It doesn't work 😢. Please help, I don't understand what's wrong.
image

Servers not showing on the Website

Docker Logs : webapp-container | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
webapp-container | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
webapp-container | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
webapp-container | 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
webapp-container | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
webapp-container | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
webapp-container | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
webapp-container | /docker-entrypoint.sh: Configuration complete; ready for start up
webapp-container | 192.168.81.125 - - [17/Mar/2024:12:21:09 +0000] "GET /home HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0"
webapp-container | 192.168.81.125 - - [17/Mar/2024:12:21:31 +0000] "GET /app HTTP/1.1" 200 7728 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0"
webapp-container | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
webapp-container | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
webapp-container | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
webapp-container | 10-listen-on-ipv6-by-default.sh: info: IPv6 listen already enabled
webapp-container | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
webapp-container | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
webapp-container | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
webapp-container | /docker-entrypoint.sh: Configuration complete; ready for start up
api-container | warn: 03/17/2024 12:21:05.014 CoreEventId.SensitiveDataLoggingEnabledWarning[10400] (Microsoft.EntityFrameworkCore.Infrastructure)
api-container | Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
api-container | info: 03/17/2024 12:21:05.207 CoreEventId.ContextInitialized[10403] (Microsoft.EntityFrameworkCore.Infrastructure)
api-container | Entity Framework Core 5.0.17 initialized 'DatabaseContext' using provider 'Pomelo.EntityFrameworkCore.MySql' with options: ServerVersion 8.0.36-mysql SensitiveDataLoggingEnabled DetailedErrorsEnabled
api-container | info: 03/17/2024 12:21:05.391 RelationalEventId.CommandExecuted[20101] (Microsoft.EntityFrameworkCore.Database.Command)
api-container | Executed DbCommand (25ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
api-container | SELECT CASE WHEN COUNT() = 0 THEN FALSE ELSE TRUE END
api-container | FROM information_schema.tables
api-container | WHERE table_type = 'BASE TABLE' AND table_schema = 'MCServerDiscovery'
api-container | info: Microsoft.Hosting.Lifetime[0]
api-container | Now listening on: http://[::]:5000
api-container | info: Microsoft.Hosting.Lifetime[0]
api-container | Application started. Press Ctrl+C to shut down.
api-container | info: Microsoft.Hosting.Lifetime[0]
api-container | Hosting environment: Production
api-container | info: Microsoft.Hosting.Lifetime[0]
api-container | Content root path: /app
api-container | info: Microsoft.Hosting.Lifetime[0]
api-container | Application is shutting down...
api-container | warn: 03/17/2024 17:28:13.062 CoreEventId.SensitiveDataLoggingEnabledWarning[10400] (Microsoft.EntityFrameworkCore.Infrastructure)
api-container | Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
api-container | info: 03/17/2024 17:28:13.192 CoreEventId.ContextInitialized[10403] (Microsoft.EntityFrameworkCore.Infrastructure)
api-container | Entity Framework Core 5.0.17 initialized 'DatabaseContext' using provider 'Pomelo.EntityFrameworkCore.MySql' with options: ServerVersion 8.0.36-mysql SensitiveDataLoggingEnabled DetailedErrorsEnabled
api-container | info: 03/17/2024 17:28:13.459 RelationalEventId.CommandExecuted[20101] (Microsoft.EntityFrameworkCore.Database.Command)
api-container | Executed DbCommand (24ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
api-container | SELECT CASE WHEN COUNT(
) = 0 THEN FALSE ELSE TRUE END
api-container | FROM information_schema.tables
api-container | WHERE table_type = 'BASE TABLE' AND table_schema = 'MCServerDiscovery'
api-container | info: Microsoft.Hosting.Lifetime[0]
api-container | Now listening on: http://[::]:5000
api-container | info: Microsoft.Hosting.Lifetime[0]
api-container | Application started. Press Ctrl+C to shut down.
api-container | info: Microsoft.Hosting.Lifetime[0]
api-container | Hosting environment: Production
api-container | info: Microsoft.Hosting.Lifetime[0]
api-container | Content root path: /app

MySQL :
grafik
grafik

Website :
grafik

Scanner not working

After running docker-compose up this is what i get.

[+] Running 3/3
 ⠿ Container mysql-container   Recreated                                                                                                                                                 0.1s
 ⠿ Container api-container     Recreated                                                                                                                                                 0.1s
 ⠿ Container webapp-container  Recreated                                                                                                                                                 0.1s
Attaching to api-container, mysql-container, webapp-container
mysql-container   | 2023-01-03 21:45:03+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.31-1.el8 started.
mysql-container   | 2023-01-03 21:45:03+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
mysql-container   | 2023-01-03 21:45:03+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.31-1.el8 started.
webapp-container  | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
webapp-container  | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
webapp-container  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
webapp-container  | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
webapp-container  | 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
webapp-container  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
webapp-container  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
webapp-container  | /docker-entrypoint.sh: Configuration complete; ready for start up
mysql-container   | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
api-container     | Unhandled exception. MySqlConnector.MySqlException (0x80004005): Host '172.17.0.1' is not allowed to connect to this MySQL server
api-container     |    at MySqlConnector.Core.ServerSession.ConnectAsync(ConnectionSettings cs, Int32 startTickCount, ILoadBalancer loadBalancer, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/Core/ServerSession.cs:line 425
api-container     |    at MySqlConnector.Core.ConnectionPool.ConnectSessionAsync(String logMessage, Int32 startTickCount, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/Core/ConnectionPool.cs:line 376
api-container     |    at MySqlConnector.Core.ConnectionPool.GetSessionAsync(MySqlConnection connection, Int32 startTickCount, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/Core/ConnectionPool.cs:line 107
api-container     |    at MySqlConnector.Core.ConnectionPool.GetSessionAsync(MySqlConnection connection, Int32 startTickCount, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/Core/ConnectionPool.cs:line 137
api-container     |    at MySqlConnector.MySqlConnection.CreateSessionAsync(ConnectionPool pool, Int32 startTickCount, Nullable`1 ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlConnection.cs:line 873
api-container     |    at MySqlConnector.MySqlConnection.OpenAsync(Nullable`1 ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlConnection.cs:line 414
api-container     |    at MySqlConnector.MySqlConnection.Open() in /_/src/MySqlConnector/MySqlConnection.cs:line 380
api-container     |    at Microsoft.EntityFrameworkCore.ServerVersion.AutoDetect(String connectionString)
api-container     |    at MinecraftServerDiscoveryApi.Contexts.DatabaseContext.OnConfiguring(DbContextOptionsBuilder optionsBuilder) in /src/MinecraftServerDiscoveryApi/Contexts/DatabaseContext.cs:line 26
api-container     |    at Microsoft.EntityFrameworkCore.DbContext.get_InternalServiceProvider()
api-container     |    at Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<System.IServiceProvider>.get_Instance()
api-container     |    at Microsoft.EntityFrameworkCore.Infrastructure.Internal.InfrastructureExtensions.GetService[TService](IInfrastructure`1 accessor)
api-container     |    at Microsoft.EntityFrameworkCore.Infrastructure.AccessorExtensions.GetService[TService](IInfrastructure`1 accessor)
api-container     |    at Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade.get_Dependencies()
api-container     |    at Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade.EnsureCreated()
api-container     |    at MinecraftServerDiscoveryApi.Startup.ConfigureServices(IServiceCollection services) in /src/MinecraftServerDiscoveryApi/Startup.cs:line 39
api-container     |    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
api-container     |    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
api-container     |    at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
api-container     |    at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
api-container     |    at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
api-container     |    at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
api-container     |    at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services, Object instance)
api-container     |    at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass13_0.<UseStartup>b__0(HostBuilderContext context, IServiceCollection services)
api-container     |    at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
api-container     |    at Microsoft.Extensions.Hosting.HostBuilder.Build()
api-container     |    at MinecraftServerDiscoveryApi.Program.Main(String[] args) in /src/MinecraftServerDiscoveryApi/Program.cs:line 16
mysql-container   | 2023-01-03T21:45:04.804026Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
mysql-container   | 2023-01-03T21:45:04.806233Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31) starting as process 1
mysql-container   | 2023-01-03T21:45:04.832309Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
mysql-container   | 2023-01-03T21:45:05.097957Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
mysql-container   | 2023-01-03T21:45:05.261062Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
mysql-container   | 2023-01-03T21:45:05.261129Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
mysql-container   | 2023-01-03T21:45:05.264073Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
mysql-container   | 2023-01-03T21:45:05.297877Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
mysql-container   | 2023-01-03T21:45:05.298052Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.31'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server - GPL.

I changed the 5000 port to 1337 cause 5000 is blocked on macos and 1337 is funny hacker number. Ive tried everything i know what could be wrong and still no idea whats wrong lol.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.