ServerSocket

Hi,
im testing the communication example of xojo server socket, but I can connect only with the local address. If I use the computer ip address, it does not connect. Both server and client are running in the same computer.

As a Know, if client and server is running in different computers(not in the same local network), I need provide the ip address in wich server is running to client establish a connection, but all the tests i made, nothing is working.

Anybody can help me?
Thanks

[quote=162999:@Julio Diniz]im testing the communication example of xojo server socket, but I can connect only with the local address. If I use the computer ip address, it does not connect. Both server and client are running in the same computer.

As a Know, if client and server is running in different computers(not in the same local network), I need provide the ip address in wich server is running to client establish a connection, but all the tests i made, nothing is working.
[/quote]

On a local network, you can access the server socket by simply typing the local IP of the computer.

Your computer is set up to prevent access from the wild wide world. You do not want any hacker from unknown places to peak into your files, right ? You need to set up things to make it accessible, and remember it may not be such a good idea, when you can have your own web space for free or for $5.00 a month.

For Mac, see http://www.macinstruct.com/node/112

But this is only half the issue. If you are using an internet box (router) you have to set it up as well to let others go through. Once again it is for your own protection, but if you are absolutely sure you want to open your machine to everybody, see an example at
http://raidenhttpd.com/en/manual/en-web-server-after-nat.html

You will have to adapt that for your own router.

Hello
I am using the sample code. When using the address of the computer works fine, but from another computer in the LAN. Tested several ports and programs, and they do connect normally from the lan computers, but not the sample program.
Regards