Autor Beitrag
o_O
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46

Windows XP
Delphi 2005 Architket
BeitragVerfasst: Do 27.07.06 21:55 
Hallu leute =)

Ich habe einen Server und einen Clienten geschrieben... so nun will ich das der Client über das internet sich mit dem Server verbindnet... nur klappt es nicht.. ich glaube es liegt an der IP .. ich hab die von meine Router genommen.. ist das falsch ? Welche muss ich nehmen ?
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Do 27.07.06 22:05 
Du musst die Internet IP nehmen.
Findest du da www.whatismyip.com
Denk auch daran das du ggf. in deinem Router die Ports freigeben musst.

MfG Coder
o_O Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46

Windows XP
Delphi 2005 Architket
BeitragVerfasst: Do 27.07.06 22:08 
Genau diese IP hab ich ja benutzt. aber es geht einfach nicht. Er connectet nicht. Gleiche Ports,beide Aktiv nur es geht einfach nicht..was kann das sein ?

Juhu leute ich habs =) thx trotzdem =)


Zuletzt bearbeitet von o_O am Do 27.07.06 22:10, insgesamt 1-mal bearbeitet
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Do 27.07.06 22:09 
Hast du auch eine Weiterleitung der Ports vom Router auf deinen PC eingerichtet?

_________________
Markus Kinzler.
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Do 27.07.06 22:13 
Wie gings denn jetzt?
Was war der Fehler?
o_O Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46

Windows XP
Delphi 2005 Architket
BeitragVerfasst: Fr 28.07.06 12:27 
Hmm es geht doch noch nicht. Der Client connectet nicht !

Wie stell ich den den Clienten den ein ?
Port,Host,Adress usw. kann mir das jemand sagen ?

Und wie leite ich die Ports auf meinen PC um ? Ich hab ne Fritzbox
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Fr 28.07.06 13:17 
Bei ner FritzBox ist das ganz einfach:

Du gehst in deine Router-Enstellungen ([url]Fritz.Box[/url]) dann gehst du zu den Internet-Einstellungen, dort dann zu der Portfreigabe, gibst dort den Port an den du bei deinen Programmen benutzt und deine interne IP (kannst du mit ipconfig herausfinden)


greetz

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
o_O Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46

Windows XP
Delphi 2005 Architket
BeitragVerfasst: Fr 28.07.06 14:07 
Und was ist wenn ich den HTTP also Port 110 verwende ?
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Fr 28.07.06 14:09 
Ist HTTP nicht Port 80? Wenn er freigegeben ist dann kannst du ihn verwenden ;)

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Fr 28.07.06 14:18 
POP=110
HTTP=80

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Fr 28.07.06 14:27 
Standardmäsig sind aber beide nicht freigegeben bei der FirtzBox.. wer macht schon einen HTTP Server auf ;)

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Fr 28.07.06 14:33 
Moin!

Auch wenn das jetzt nicht konkret eine Hilfe ist, möchte ich es trotzdem nochmal erwähnen:

Die Ports von 1-1024 sind sog. "well-known"-Ports und für Systemdienste reserviert, deshalb sollte man in eigenen Anwendungen immer Portnummern oberhalb von 1024 verwenden! :mahn: Am besten 5-stellige. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Fr 28.07.06 14:37 
...und dabei noch Ports, die unwahrscheinlich sind, dass es ein anderer wählt, also z.B. net 10000 oder 12345 oder sowas logisches.
Ich hab für mein Pogramm mal auf dem Tastenfeld rumgehauen und bin auf 8193 gekommen :wink:

_________________
Programmers never die, they just GOSUB without RETURN
o_O Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46

Windows XP
Delphi 2005 Architket
BeitragVerfasst: Fr 28.07.06 14:40 
aso ok ich werd mal schauen wies damit klappt =) thx
root_at_localhost
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 191



BeitragVerfasst: Fr 28.07.06 15:22 
am besten macht man seine Portnummer frei konfigurierbar, dann is es auch egal, ob jemand anderes die auch verwendet. Ansonsten kann man noch in die services-Datei schauen ob es irgendeinen bekannten Dienst gibt, der den Port verwendet...
o_O Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46

Windows XP
Delphi 2005 Architket
BeitragVerfasst: Fr 28.07.06 16:03 
Man es verbindet einfach nicht =( wie ist das mit dem Localhost ?! Was muss da rein ? Localhost oder meine IP oder ??
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Fr 28.07.06 16:05 
Du brauchst eine Weiterleitung von der öffentlichen Adresse des Routers ( vom Provider zugewiesen) auf ide private IP-Adresse deines Rechners.

_________________
Markus Kinzler.
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Fr 28.07.06 16:11 
Wenn du den Server und den Client beide auf deinem Rechner laufen hast musst du bei Server "localhost" reinschreiben.
o_O Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46

Windows XP
Delphi 2005 Architket
BeitragVerfasst: Fr 28.07.06 16:15 
Ja aber der Client ist auf einem ganz anderen PC geht ja übers I-Net ... ich hab den Port schon weitergeleitet auf meinen PC aber es geht nicht
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Fr 28.07.06 16:32 
Welche Adresse ist dir nicht klar? Du mußt den Client mit der öffentlichen Adresse des Servers verbinden.

_________________
Markus Kinzler.