Network examples question

Everything else that doesn't fall into one of the other PB categories.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by BalrogSoft.


Hi!

I have a question of network examples, which is the ip server in the client example?:
ConnectionID = OpenNetworkConnection("127.0.0.1", Port)

Because in server example dont show this ip in any part of code, is this ip the ip of the internet user?

Bye, and sorry for my bad english

Balrog Soft
Amiga and PC Coder
http://www.balrogsoftware.com
[url]mailto:balrog@balrogsoftware.com[/url]
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fweil.

The IP shown in this example is the one you want to reach at the Port port.

ie : you want to send a ftp stream to 127.0.0.1 use 127.0.0.1 as target IP and 21 as standard ftp port.

127.0.0.1 is the well known IP of localhost, that is to say yourself.

Francois Weil
14, rue Douer
F64100 Bayonne
Post Reply