klt elvileg az xfire lenne az. a windowson a host file ban megadtam a 127.0.0.1 de az xfire kliens csak nem látja....

Run & Connect
Add cs.xfire.com to your hosts file with your IP
On Windows it's located at C:\Windows\System32\drivers\etc\hosts
127.0.0.1 cs.xfire.com
Note: This is a workaround to redirect the XFire client to point to your localhost address (127.0.0.1) instead of the real server

Open a command line and run the following commands from the root directory

cd src\PFire.Console
dotnet run

host file-om:

#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
	127.0.0.1       cs.xfire.com
	45.128.69.249	cs.xfire.com
#	::1             localhost```
  • klt válaszolt erre.

    mennydorges

    mennydorges windowson a host file ban megadtam a 127.0.0.1 de az xfire kliens csak nem látja....

    És azon a windowsos gépen futna a kiszolgáló?
    Mert ha nem, akkor a 127.0.0.1 nem jó, az félrevezetés.

      mennydorges Akkor próbáld meg, hogy a Windowson a szervered IP címét adod meg!
      Akkor nem a kliens nem a local hoston akar a kiszolgálóhoz kapcsolódni...

        klt

        45.128.69.249	cs.xfire.com 

        ha a hostot módosítom windowson mindig kell neki egy restart?

        • klt válaszolt erre.

          klt
          Basszus sikerült. Köszi klt.

          FROM "User" AS "u"
          INNER JOIN "Friend" AS "f" ON "u"."Id" = "f"."MeId"
          INNER JOIN "User" AS "u0" ON "f"."ThemId" = "u0"."Id"
          WHERE ("u"."Id" = @__user_Id_0) AND NOT ("f"."Pending")
          [18:42:30 DBG] A data reader was disposed.
          [18:42:30 DBG] Closing connection to database 'main' on server '/opt/PFire/src/PFire.Console/pfiredb.sqlite'.
          [18:42:30 DBG] Closed connection to database 'main' on server 'pfiredb.sqlite'.
          [18:42:30 DBG] 'DatabaseContext' disposed.
          [18:42:30 DBG] Sent message[geb,1]: PFire.Core.Protocol.Messages.Outbound.FriendsSessionAssign

          Még annyi belefér,hogy lehet ezt a dotnet run automatikusan folytonosan futtatni?
          Mert most megnyitom a terminált átlépek a mappájába és ki kell adnom neki a dotnet run parancsot.
          De bezárom a terminált leáll...

          • klt válaszolt erre.
          • klt kedveli ezt.

            klt De mekkora 😉
            MODERÁLVA!

            Felhívnám a figyelmedet arra a tényre, hogy legyen szó bármilyen rendszerről vagy bárkiről, ezen az oldalon tisztességgel emlegetjük. Ez rád is vonatkozik.
            Htibi

            • klt válaszolt erre.

              mennydorges

              mennydorges dotnet run automatikusan folytonosan futtatni?

              Persze.
              Scriptben írd le a futtatását.

              Valami ilyesmi, nem szó szerint, de majd te leírod rendesen:

              #!/bin/sh
              /bin/dotnet run izébizé és paraméterei
              #vagy mittomén milyen paranccsal indítod amúgy a treminálból.

              Elmented például /opt/xfirestart.sh néven.

              /etc/systemd/system alatt csinálsz egy új fájlt például xfirepfire.service néven:

              [Unit]
              Description=Xfire vagy mi a levegő szerver
              #Requires=
              #Ha valaminek még előtte el kell indulnia teljesen, és az ehhez kell, akkor unkomment, és odaírni a nevét annak
              #After=
              #Csak egyszerűen ez után induljon, ha nincs ilyen, akkor mindegy, mikor indul
              
              [Service]
              Type=simple
              User=xfireuserneve
              #Ezen felhasználó neve alatt fut majd ex xfire pótlék
              ExecStart=/opt/xfirestart.sh
              #vagy amine nevezted a scriptet...
              
              [Install]
              WantedBy=multi-user.target

              Ezután

              systemctl daemon-reload
              systemctl enable xfirepfire

              (vagy aminek neezted a .service-t)
              systemctl start xfirepfire
              (Nyilván, ide is az a név jön, amit te adtál neki)

              Kész.
              Ha jól csináltad, a start után a systemctl status xfirepfire olyasmit (is) kell mutasson, hogy
              Active: active (running)

                klt

                ● xfirepfire.service - Xfire szerver
                   Loaded: loaded (/etc/systemd/system/xfirepfire.service; enabled; vendor preset: enabled)
                   Active: failed (Result: exit-code) since Mon 2023-05-01 19:28:32 CEST; 22s ago
                  Process: 30598 ExecStart=/opt/xfirestart.sh (code=exited, status=203/EXEC)
                 Main PID: 30598 (code=exited, status=203/EXEC)
                
                máj 01 19:28:32 panel systemd[1]: Started Xfire szerver.
                máj 01 19:28:32 panel systemd[30598]: xfirepfire.service: Failed to execute command: Text file busy
                máj 01 19:28:32 panel systemd[30598]: xfirepfire.service: Failed at step EXEC spawning /opt/xfirestart.sh: Text file busy
                máj 01 19:28:32 panel systemd[1]: xfirepfire.service: Main process exited, code=exited, status=203/EXEC
                máj 01 19:28:32 panel systemd[1]: xfirepfire.service: Failed with result 'exit-code'.

                sh file:

                #!/usr/env/bin bash
                /opt/PFire/src/PFire.Console/dotnet run

                service:

                [Unit]
                Description=Xfire szerver
                
                [Service]
                Type=simple
                ExecStart=/opt/./xfirestart.sh
                
                [Install]
                WantedBy=multi-user.target
                • klt válaszolt erre.

                  klt
                  xfirepfire.service: Failed at step EXEC spawning /opt/xfirestart.sh: No such file or directory

                  Azért sem akarja...

                  • klt válaszolt erre.

                    klt
                    /opt/xfirestart.sh

                    #!/bin/sh
                    /opt/PFire/src/PFire.Console/dotnet run

                    Nagyon nem csináltam még netframeworkos progit...

                    • klt válaszolt erre.

                      mennydorges

                      mennydorges Próbálom működésre bírni.

                      Mutattam linket, ami elmegyarázza, mi az a #! kezdetű izé a szkript elején. Azt nem nézted meg?

                      It's called a shebang, and tells the parent shell which interpreter should be used to execute the script.

                      mennydorges Nagyon nem csináltam még

                      Én se. De ha terminálból elindul, akkor így is el kéne neki.