445A problemi di Hosting,help please

uazzamerican

Nuovo Utente
4
0
Ciao ragazzi,dopo aver girato inlungo ed in largo ed ottenuto sempre le solite risposte(apri le porte...Come se non lo facessi, per la disperazione ho installato il PC in un open-space), credo di aver trovato qualcosa di interessante tra le Directplay issues Microsoft:

Ecco la prima:

Windows Internet Connection Firewall

Microsoft DirectPlay works with the Internet Connection Firewall capabilities of Microsoft Windows XP. When your application begins hosting, enumerating, or connecting, the appropriate ports will automatically open and when your application shuts down, these ports will automatically close. However, the user launching the application must be a member of the administrator group for the computer so that DirectPlay has the security permissions to open the ports. If the user is not an administrator, then only IDirectPlay8Client and IDirectPlay8Peer clients are supported.


E infatti facendo le prove con un'applicazione ke va di certo,Edonkey2000 e la sua porta TCP, mi ci ritrovo,quando è spento è chiusa,quando è acceso è aperta(ovviamente l'ho aperta dal virtual server). Ma per l'HOST la storia è diversa, leggete dopo:

You can disable the automatic Internet Connection Firewall traversal using the DPNA_KEY_TRAVERSALMODE device address component described in Basic NAT Issues for Peer Hosts, Basic NAT Issues for Peer Clients, Basic NAT Issues for Servers, and Basic NAT Issues for Clients.
N.B: Automatic internet connection Firewall non dovrebbe essere il firewall di XP a quanto ho capito, son due cose distinte.


Ecco la seconda(N.B:il 445A non è UPnP):

Disabling Automatic Traversal

Some users know that the hosting application is not behind a UPnP NAT device and the Windows Internet Connection Firewall is not enabled. Others might want to manually control any mappings made for the host. You can decrease the time required by IDirectPlay8Peer::Host and prevent automated traversal by setting the DPNA_KEY_TRAVERSALMODE component to DPNA_TRAVERSALMODE_NONE as shown in the following example.




DWORD dwTraversalMode = DPNA_TRAVERSALMODE_NONE;

hr = pDP8AddressDevice->AddComponent(DPNA_KEY_TRAVERSALMODE, &dwTraversalMode, sizeof(dwTraversalMode),



Se ho capito bene directplay apre e chiude tramite win le porte che gli servono con un router UPnP. Il 445A non lo è quindi bisognerebbe optare per la seconda possibilità.
Qualcuno sa dirmi dove andare ad inserire le due istruzioni soprastanti?
O meglio, qualcuno ha capito il tutto meglio di me?
 

Entra

oppure Accedi utilizzando
Discord Ufficiale Entra ora!

Discussioni Simili