AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi connect trought firewall, port detection
Thema durchsuchen
Ansicht
Themen-Optionen

connect trought firewall, port detection

Ein Thema von marconi8 · begonnen am 22. Jul 2003 · letzter Beitrag vom 22. Jul 2003
Antwort Antwort
marconi8

Registriert seit: 13. Jul 2003
19 Beiträge
 
#1

connect trought firewall, port detection

  Alt 22. Jul 2003, 10:26
for example i must to connect to the remote server, but i am under firewal, that means that some ports are disabled by my lan administrator, but i know that some ports can be opened

on remote pc is installed server (tIdHttpserver), this server binds on any port


and now client try to connect to the http server with default port 80, but this port (for example) is closed on the my lan proxy

then client click button "try to connect trought any available port"

and my program in repeat or in for statements try to connect with each listed in loop port

for example
for i = 1 to 65535 do
try
connect to remote server with port[i]

this will be normal solution or very stupid, can anybody something advice to me about this ...


thanks
  Mit Zitat antworten Zitat
Benutzerbild von flomei
flomei

Registriert seit: 17. Jan 2003
Ort: Schieder-Schwalenberg
2.094 Beiträge
 
Delphi 2005 Personal
 
#2

Re: connect trought firewall, port detection

  Alt 22. Jul 2003, 14:53
I think that is quite good. You should perhaps stop the loop when the client has found an open port because that would require lot of ressources which can be used better.

Greetings Florian

P.S.: Please excuse my "School English"
Florian Meier
... ist raus.
Vielen Dank für die Zeit mit euch!
http://www.flomei.de -- http://www.md5hash.de
  Mit Zitat antworten Zitat
Chewie

Registriert seit: 10. Jun 2002
Ort: Deidesheim
2.886 Beiträge
 
Turbo Delphi für Win32
 
#3

Re: connect trought firewall, port detection

  Alt 22. Jul 2003, 18:59
Sorry, but I don't think that's a good idea. Let's say you need 100 ms to check whether a port is open or not. In the worct case, you need about 6500s, which makes nearly 2 hours.
I find it very strange that a firewall blocks port 80 (well, maybe to prevent surfing at work ), but, however, there must be a way to find out which ports are open. Ask your admin about it.

If there's no possibility to find out which ports are opened, then your proposal is the only possibility. By using several threads, you can drastically reduce the amount of needed time, but it's still very slow.
Martin Leim
Egal wie dumm man selbst ist, es gibt immer andere, die noch dümmer sind
  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 04:05 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz