AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi 127.0.0.1(localhost) = current ip?
Thema durchsuchen
Ansicht
Themen-Optionen

127.0.0.1(localhost) = current ip?

Ein Thema von Pseudemys Nelsoni · begonnen am 18. Okt 2004 · letzter Beitrag vom 27. Okt 2004
Antwort Antwort
Revolt

Registriert seit: 18. Okt 2004
1 Beiträge
 
#1

Re: 127.0.0.1(localhost) = current ip?

  Alt 18. Okt 2004, 23:22
Your Delphi TServerSocket component probably binds to INADDR_ANY, and thus listens on all available interfaces. This would make it APPEAR you're able to connect to localhost and others are able to connect to your IP, but in reality if you bound strictly to '127.0.0.1', people would not be able to make a connection to your computer from over the Internet.

struct sockaddr_in addr;

addr.sin_addr.s_addr = INADDR_ANY; // bind to all interfaces

as opposed to

addr.sin_addr.s_addr = inet_addr("127.0.0.1"); // bind to 127.0.0.1

or

addr.sin_addr.s_addr = inet_addr("69.29.23.12"); // bind to that IP (provided it's assigned to your computer) and now people can connect on it
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:29 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz