Board index » delphi » TServerSocket/TClientSocket

TServerSocket/TClientSocket


2003-07-18 08:01:42 PM
delphi249
Hi,
I'm using a TSeverSocket and TClientSocket to send messages between
applications via TCP using a port number.
So on my local network all works just fine. I indicate the host name or
address to connect to and I can send and receive messages.
When I try to connect to another machine over ADSL line I can not establish
the connection.
Why is that happens? Can I do this, is it possible? If so what am I missing?
If not how can I do this, what components must I use? Maybe Indy?
I'm using ports starting 50000. I have a firewall but I configured these
ports to accept send/receive requests.
Thanks,
--
Carlos Matos
--------------------------------------------
Morada / Address:
Urb.Vale Verde Lote 34 - Loja - 3040 COIMBRA
Telefone / Phone: +351 239 802 340-8
Fax: +351 293 802 349
E-mail: XXXX@XXXXX.COM
Web: www.comograma.pt
--------------------------------------------
 
 

Re:TServerSocket/TClientSocket

Did you try to see the TMS Async32 on www.tmssoftware.com
(Espero que Ajude)???
Augusto Campos
"Carlos Matos" <XXXX@XXXXX.COM>escreveu na mensagem
Quote
Hi,
I'm using a TSeverSocket and TClientSocket to send messages between
applications via TCP using a port number.
So on my local network all works just fine. I indicate the host name or
address to connect to and I can send and receive messages.
When I try to connect to another machine over ADSL line I can not establish
the connection.
Why is that happens? Can I do this, is it possible? If so what am I
missing?
If not how can I do this, what components must I use? Maybe Indy?

I'm using ports starting 50000. I have a firewall but I configured these
ports to accept send/receive requests.

Thanks,

--
Carlos Matos

--------------------------------------------
Morada / Address:
Urb.Vale Verde Lote 34 - Loja - 3040 COIMBRA
Telefone / Phone: +351 239 802 340-8
Fax: +351 293 802 349
E-mail: XXXX@XXXXX.COM
Web: www.comograma.pt
--------------------------------------------


 

Re:TServerSocket/TClientSocket

This should work. I do similar often. A simple thing to check would be can
you ping the target machine? Try this by name and by address. Perhaps your
not getting name resolution if you are doing it by name. You also might try
another port. Some rather pesky viruses use ports in the 50000 range, so
your ISP may be blocking them.
"Carlos Matos" <XXXX@XXXXX.COM>writes
Quote
Hi,
I'm using a TSeverSocket and TClientSocket to send messages between
applications via TCP using a port number.
So on my local network all works just fine. I indicate the host name or
address to connect to and I can send and receive messages.
When I try to connect to another machine over ADSL line I can not establish
the connection.
Why is that happens? Can I do this, is it possible? If so what am I
missing?
If not how can I do this, what components must I use? Maybe Indy?

I'm using ports starting 50000. I have a firewall but I configured these
ports to accept send/receive requests.

Thanks,

--
Carlos Matos

--------------------------------------------
Morada / Address:
Urb.Vale Verde Lote 34 - Loja - 3040 COIMBRA
Telefone / Phone: +351 239 802 340-8
Fax: +351 293 802 349
E-mail: XXXX@XXXXX.COM
Web: www.comograma.pt
--------------------------------------------


 

Re:TServerSocket/TClientSocket

Obrigado pela resposta Augusto.
Não, ainda não experimentei TMS Async32. Mas evito sempre ao máximo utilizar
Third-Party Tools para me ser mais fácil migrar em futuras versões do
Delphi.
--
Carlos Matos
--------------------------------------------
Morada / Address:
Urb.Vale Verde Lote 34 - Loja - 3040 COIMBRA
Telefone / Phone: +351 239 802 340-8
Fax: +351 293 802 349
E-mail: XXXX@XXXXX.COM
Web: www.comograma.pt
--------------------------------------------
"Augusto Campos" <XXXX@XXXXX.COM>escreveu na mensagem
Quote
Did you try to see the TMS Async32 on www.tmssoftware.com

(Espero que Ajude)???
Augusto Campos

"Carlos Matos" <XXXX@XXXXX.COM>escreveu na mensagem
news:XXXX@XXXXX.COM...
>Hi,
>I'm using a TSeverSocket and TClientSocket to send messages between
>applications via TCP using a port number.
>So on my local network all works just fine. I indicate the host name or
>address to connect to and I can send and receive messages.
>When I try to connect to another machine over ADSL line I can't
establish
>the connection.
>Why is that happens? Can I do this, is it possible? If so what am I
missing?
>If not how can I do this, what components must I use? Maybe Indy?
>
>I'm using ports starting 50000. I have a firewall but I configured these
>ports to accept send/receive requests.
>
>Thanks,
>
>--
>Carlos Matos
>
>--------------------------------------------
>Morada / Address:
>Urb.Vale Verde Lote 34 - Loja - 3040 COIMBRA
>Telefone / Phone: +351 239 802 340-8
>Fax: +351 293 802 349
>E-mail: XXXX@XXXXX.COM
>Web: www.comograma.pt
>--------------------------------------------
>
>


 

Re:TServerSocket/TClientSocket

Thanks Dave,
Well, I did try to ping the target machine but I can not reach it (request
time exceeded).
I also try connecting by name and by address and no response.
Regarding to ports, well I must change all the ports (server and client) to
test it.
Any other hints?
Thanks,
--
Carlos Matos
--------------------------------------------
Morada / Address:
Urb.Vale Verde Lote 34 - Loja - 3040 COIMBRA
Telefone / Phone: +351 239 802 340-8
Fax: +351 293 802 349
E-mail: XXXX@XXXXX.COM
Web: www.comograma.pt
--------------------------------------------
"Dave Gestenslager" <XXXX@XXXXX.COM>escreveu na mensagem
Quote
This should work. I do similar often. A simple thing to check would be
can
you ping the target machine? Try this by name and by address. Perhaps your
not getting name resolution if you are doing it by name. You also might
try
another port. Some rather pesky viruses use ports in the 50000 range, so
your ISP may be blocking them.


"Carlos Matos" <XXXX@XXXXX.COM>writes
news:XXXX@XXXXX.COM...
>Hi,
>I'm using a TSeverSocket and TClientSocket to send messages between
>applications via TCP using a port number.
>So on my local network all works just fine. I indicate the host name or
>address to connect to and I can send and receive messages.
>When I try to connect to another machine over ADSL line I can't
establish
>the connection.
>Why is that happens? Can I do this, is it possible? If so what am I
missing?
>If not how can I do this, what components must I use? Maybe Indy?
>
>I'm using ports starting 50000. I have a firewall but I configured these
>ports to accept send/receive requests.
>
>Thanks,
>
>--
>Carlos Matos
>
>--------------------------------------------
>Morada / Address:
>Urb.Vale Verde Lote 34 - Loja - 3040 COIMBRA
>Telefone / Phone: +351 239 802 340-8
>Fax: +351 293 802 349
>E-mail: XXXX@XXXXX.COM
>Web: www.comograma.pt
>--------------------------------------------
>
>