'new InetSocketAddress("127.0.0.1", 9876)' does not create a socket
connection. It only creates a new address.
'new Socket("127.0.0.1", 9876)' creates a new socket connection.

Perhaps you should go through this tutorial:
http://java.sun.com/docs/books/tutorial/networking/index.html

-Tad

2009/9/17 leadylynx <[email protected]>:
>
> Tad, thanks again for your answer, but I'm not agree with you... you
> said that "App Engine does not allow connections to 127.0.0.1 (or
> any other Google internal IP space)". But as i know ClientBackend in
> its constructor calls "new ClientRpcChannel(new InetSocketAddress
> ("127.0.0.1", 9876));"
> So, when i  call only "new InetSocketAddress("127.0.0.1", 9876)" this
> line works normally. So as i understand (maybe i'm wrong) App Engine
> allow connections to 127.0.0.1. But if i write line "new
> ClientRpcChannel(new InetSocketAddress("127.0.0.1", 9876))" i have a
> problem about which I wrote earlier.
>
> again, maybe I am wrong. I would be very grateful if you'll explain me
> this moment.
>
>
>
>
> On 17 сен, 21:59, Tad Glines <[email protected]> wrote:
>> The ClientBackend class needs to connect to the FedOne server. You
>> have it configured to connect to 127.0.0.1. That's the local loopback
>> address.
>> I imagine that App Engine does not allow connections to 127.0.0.1 (or
>> any other Google internal IP space).
>> Also, you are not running the FedOne server in an App Engine service.
>> You will have to run FedOne on a separate internet addressable server,
>> then use that IP:port when instantiating ClientBackend. This is not
>> secure BTW.
>>
>> -Tad
>>
>>
>>
>> On Thu, Sep 17, 2009 at 11:44 AM, leadylynx <[email protected]> wrote:
>>
>> > Hi, I have next problem.
>> > I put this code in my servlet in App Engine project :
>> >  new ClientBackend("ad...@localhost", "127.0.0.1", 9876);
>> > Then i run it(i mean my project). And have this exception in result:
>> >  java.security.AccessControlException: access denied
>> > (java.net.SocketPermission 127.0.0.1:9876 connect,resolve)
>> > Can anyone say why this happens?
>>
>> > (excuse me if i should place this message not at Wave Protocol forum)
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Wave 
Protocol" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/wave-protocol?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to