 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
David Guest
|
Posted: Thu Apr 29, 2004 7:28 am Post subject: About TCP port with Indy |
|
|
Hi Indy team,
I have a question, I build a TCP server, for example, a SMTP server with
TIdSMTPServer and run it, and in another computer I connect to this SMTP
server with telnet command as:
telnet *.*.*.* 25
Yes, I can connect to it. But if I change the SMTP server port from 25 to
another value, such as 26, and the other computer is in the different IP
section(other ISP), I can not connect to the SMTP server with the command:
telnet *.*.*.* 26
but if change the bind port to 25, works well.
Why?
Thanks
David
|
|
| Back to top |
|
 |
Charles Stack Guest
|
Posted: Thu Apr 29, 2004 12:16 pm Post subject: Re: About TCP port with Indy |
|
|
You may want to provide a snippet from your source code showing how you
configured the socket.
Also, is there a firewall on your network, possibly blocking inbound
connections?
Charles
"David" <pangtat2000 (AT) yahoo (DOT) com.cn> wrote
| Quote: | Hi Indy team,
I have a question, I build a TCP server, for example, a SMTP server with
TIdSMTPServer and run it, and in another computer I connect to this SMTP
server with telnet command as:
telnet *.*.*.* 25
Yes, I can connect to it. But if I change the SMTP server port from 25 to
another value, such as 26, and the other computer is in the different IP
section(other ISP), I can not connect to the SMTP server with the command:
telnet *.*.*.* 26
but if change the bind port to 25, works well.
Why?
Thanks
David
|
|
|
| Back to top |
|
 |
David Guest
|
Posted: Thu Apr 29, 2004 4:56 pm Post subject: Re: About TCP port with Indy |
|
|
Yes, I install Norton Internet Security in my computer, but when I tested
it, I stopped the firewall, same result, anybody can tell me why? Why port
25 is ok, but other can not?
Thanks
"Charles Stack" <charles> wrote
| Quote: | You may want to provide a snippet from your source code showing how you
configured the socket.
Also, is there a firewall on your network, possibly blocking inbound
connections?
Charles
"David" <pangtat2000 (AT) yahoo (DOT) com.cn> wrote in message
news:4090aca9$1 (AT) newsgroups (DOT) borland.com...
Hi Indy team,
I have a question, I build a TCP server, for example, a SMTP server with
TIdSMTPServer and run it, and in another computer I connect to this SMTP
server with telnet command as:
telnet *.*.*.* 25
Yes, I can connect to it. But if I change the SMTP server port from 25
to
another value, such as 26, and the other computer is in the different IP
section(other ISP), I can not connect to the SMTP server with the
command:
telnet *.*.*.* 26
but if change the bind port to 25, works well.
Why?
Thanks
David
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Apr 29, 2004 7:55 pm Post subject: Re: About TCP port with Indy |
|
|
"David" <pangtat2000 (AT) yahoo (DOT) com.cn> wrote
| Quote: | Why port 25 is ok, but other can not?
|
Is the server actually listening on port 26 to begin with? When exactly did
you change the port? Was it at design-time, or at runtime?
Gambit
|
|
| Back to top |
|
 |
David Guest
|
Posted: Fri Apr 30, 2004 1:16 am Post subject: Re: About TCP port with Indy |
|
|
I changed the port to 26, then restarted the program. I have tried port
25,26,23,21, etc., but all failed except port 25. If I tried the same test
in local network with same IP range, all worked well, but if in another
network, for example, the other computer connect to the internet via another
ISP, only port 25 could be connected with telnet command.
Are there any special setting in TidTCPServer or TIdSMTPServer?
Thanks
"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote
| Quote: |
"David" <pangtat2000 (AT) yahoo (DOT) com.cn> wrote in message
news:409131b7 (AT) newsgroups (DOT) borland.com...
Why port 25 is ok, but other can not?
Is the server actually listening on port 26 to begin with? When exactly
did
you change the port? Was it at design-time, or at runtime?
Gambit
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Apr 30, 2004 7:14 pm Post subject: Re: About TCP port with Indy |
|
|
"David" <pangtat2000 (AT) yahoo (DOT) com.cn> wrote
| Quote: | I changed the port to 26, then restarted the program.
|
That is not what I asked.
Is the port set to 26 BEFORE or AFTER you set the server's Active property
to true? Again, I ask.. when EXACTLY are you setting the port to 26?
| Quote: | I have tried port 25,26,23,21, etc., but all failed except port 25.
|
That doesn't tell me anything without knowing the specifics of when and how
you are setting the port to begin with.
| Quote: | If I tried the same test in local network with same IP range, all
worked well, but if in another network, for example, the other
computer connect to the internet via another ISP, only port 25
could be connected with telnet command.
|
Then that suggests a firewall or router is probably involved somewhere on
the network blocking the ports.
Gambit
|
|
| Back to top |
|
 |
David Guest
|
Posted: Sat May 01, 2004 3:10 am Post subject: Re: About TCP port with Indy |
|
|
Hi Gambit,
Thank you very much for your reply.
I set the port to 26 before I set the server's Active property to true. The
process of setting the server's Active property to true is in the main form
oncreate event, so I first set the port to 26, then close the program, then
start the program, now I think that the port of server is 26.
Another case, if I set the port to 110, the program can connect the
server(TIdSMTPServer) from outside network computer, but if I send email to
the server(TIdSMTPServer), after the "DATA" command, the server can only
received the first line of email(the first line of header), but in the
client program, the all data of the mail have been sent out include the
command '.', but the server received nothing except the first line and then
waiting....
I'm not sure what difference between port 25 and port 110, they are all
TCP/IP port, but it seems that the port 110 will capture the data. Can you
tell me why?
Thanks
"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote
| Quote: |
"David" <pangtat2000 (AT) yahoo (DOT) com.cn> wrote in message
news:4091a6e5$1 (AT) newsgroups (DOT) borland.com...
I changed the port to 26, then restarted the program.
That is not what I asked.
Is the port set to 26 BEFORE or AFTER you set the server's Active property
to true? Again, I ask.. when EXACTLY are you setting the port to 26?
I have tried port 25,26,23,21, etc., but all failed except port 25.
That doesn't tell me anything without knowing the specifics of when and
how
you are setting the port to begin with.
If I tried the same test in local network with same IP range, all
worked well, but if in another network, for example, the other
computer connect to the internet via another ISP, only port 25
could be connected with telnet command.
Then that suggests a firewall or router is probably involved somewhere on
the network blocking the ports.
Gambit
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Sat May 01, 2004 4:15 am Post subject: Re: About TCP port with Indy |
|
|
"David" <pangtat2000 (AT) yahoo (DOT) com.cn> wrote
| Quote: | I set the port to 26 before I set the server's Active property to true.
The
process of setting the server's Active property to true is in the main
form
oncreate event, so I first set the port to 26, then close the program,
then
start the program, now I think that the port of server is 26.
|
If you run a program like netstat after activating the server, does it say
that port 26 is actually in use?
| Quote: | Another case, if I set the port to 110
|
Port 110 is typically used for POP3, not SMTP.
| Quote: | the program can connect the server(TIdSMTPServer) from outside
network computer, but if I send email to the server(TIdSMTPServer),
after the "DATA" command, the server can only received the first line
of email(the first line of header), but in the client program, the all
data
of the mail have been sent out include the command '.', but the server
received nothing except the first line and then waiting....
|
That still suggests that you have something on the network
blocking/intercepting the data traffic between the client and server.
Gambit
|
|
| Back to top |
|
 |
Charles Stack Guest
|
Posted: Sat May 01, 2004 1:38 pm Post subject: Re: About TCP port with Indy |
|
|
Per chance, is he running XP and have the built-in firewall enabled?
| Quote: | That still suggests that you have something on the network
blocking/intercepting the data traffic between the client and server.
|
|
|
| Back to top |
|
 |
David Guest
|
Posted: Sun May 09, 2004 12:02 pm Post subject: Re: About TCP port with Indy |
|
|
Yes, my OS is XP, but the built-in firewall has been disabled.
"Charles Stack" <charles> wrote
| Quote: | Per chance, is he running XP and have the built-in firewall enabled?
That still suggests that you have something on the network
blocking/intercepting the data traffic between the client and server.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|