Go Back   Computer Forums > Social Networking | Instant Messaging | Communications
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 06-25-2006, 07:45 PM   #1
In Runtime
 
hextcomm's Avatar
 
Join Date: Aug 2005
Posts: 237
Send a message via ICQ to hextcomm Send a message via AIM to hextcomm Send a message via MSN to hextcomm
Default Sockets.

Salutations,

I have written an Apllication (that uses sockets)

This is a general question.

I told it to connect to another server that was running (localhost) and it successfully connected and was able to send the messages.

But I can't seem to use it over the internet, i tried it with a friends echo server and it failed (but my friends echo server is the only one i know of to test it with, and is the only one i tested it with over the internet, could someone please help me?

I am using Delphi 7 Enterprise.

Thanks.
__________________

__________________
Nicholas.

http://www.kompulsa.com

http://www.kompulsa.com/kae/

http://www.kompulsa.com/it/
hextcomm is offline   Reply With Quote
Old 06-26-2006, 09:28 AM   #2
In Runtime
 
hextcomm's Avatar
 
Join Date: Aug 2005
Posts: 237
Send a message via ICQ to hextcomm Send a message via AIM to hextcomm Send a message via MSN to hextcomm
Default Re: Sockets.

here's the code, which works fine on the local network, but not the internet.

procedure TForm1.TEMPClick(Sender: TObject);
begin
txcont1 := TXTYPE1.Text;
TSOCK1.RemotePort := ESOCKPORT1.Text;
TSOCK1.RemoteHost := ESOCKHOST1.Text;
TSOCK1.Active := true;
TSOCK1.Connect;
TSOCK1.Open;
end;

procedure TForm1.Button1Click(Sender: TObject);
var test: string;
begin
TSOCK1.Sendln(txtype1.Text);
TXM1.Lines.Add(txtype1.Text);
TXTYPE1.Clear;
end;
__________________
Nicholas.

http://www.kompulsa.com

http://www.kompulsa.com/kae/

http://www.kompulsa.com/it/
hextcomm is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 12:57 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0