cancel
Showing results for 
Search instead for 
Did you mean: 

can not download files from application server

suda
Champ in-the-making
Champ in-the-making
I have 2 servers one for main application 192.168.1.110 and other for alfresco server 4.0.d at 192.168.1.112. application server call alfresco using api and it is perfectly working in local but when i connect to my application through internet by a static IP still I can upload but I can not download or preview images as the displaying path is loacal ip address Please help
6 REPLIES 6

muralidharand
Star Contributor
Star Contributor
Hi,
What values are present in the alfresco-global.properties file?


alfresco.context=alfresco
alfresco.host=127.0.0.1
alfresco.port=8080
alfresco.protocol=http

share.context=share
share.host=127.0.0.1
share.port=8080
share.protocol=http


suda
Champ in-the-making
Champ in-the-making
hi,
thanks for the quick reply

the values of  alfresco-global.properties file as

alfresco.context=alfresco

alfresco.host=127.0.0.1

alfresco.port=8080

alfresco.protocol=http



share.context=share

share.host=127.0.0.1

share.port=8080

share.protocol=http

thanks

sscbrian
Champ on-the-rise
Champ on-the-rise
alfresco.host and share.host should be set to an externally (of the server) addressable IP if you want to use it from anywhere other than localhost.

suda
Champ in-the-making
Champ in-the-making
I can access alfresco within my LAN.and I have a web application integrated with alfresco and configured as:

'Alfresco_in_use' => true,
    'Alfresco_repository_url' => 'http://192.168.1.112:8080/alfresco/api',
    'Alfresco_protocol' => 'http://',
    'Alfresco_host' => '192.168.1.112',
    'Alfresco_port' => '8080',
    'Alfresco_store_path' => "/alfresco/download/direct/workspace/SpacesStore/",
    'Alfresco_upload_path'=>"PATH:\"app:company_home/app:user_homes/cm:abeecher\"",
    'Alfresco_username'=>"username",
    'Alfresco_password'=>"password",

my application works well in LAN but when I  access my application via public ip 43.xxx.xxx.xxx.
still I can upload but can not download.

sscbrian
Champ on-the-rise
Champ on-the-rise
Same problem.  You're connecting to the public IP initially, but then it redirects to the 192/private address for some tasks.  Since those aren't routable outside, it will fail.  A couple workarounds:

- Host it externally so everyone uses the public IP (and put that in your config)
- Supply outside users with a VPN connection so that they see the same private IP (from your config) as the inside users.

suda
Champ in-the-making
Champ in-the-making
thanks for quick reply,

there is a problem, when I set a public IP like

'Alfresco_in_use' => true,
'Alfresco_repository_url' => 'http://43.xxx.xxx.xxxx:8080/alfresco/api',
'Alfresco_protocol' => 'http://',
'Alfresco_host' => '43.xxx.xxx.xxxx',
'Alfresco_port' => '8080',
'Alfresco_store_path' => "/alfresco/download/direct/workspace/SpacesStore/",
'Alfresco_upload_path'=>"PATH:\"app:company_home/app:user_homes/cm:abeecher\"",
'Alfresco_username'=>"username",
'Alfresco_password'=>"password",

I can access using url http://43.xxx.xxx.xxxx:8080/share

But my application says 'http://43.xxx.xxx.xxxx:8080/alfresco/api can not be found' or gives a SOAP error  as the both servers are in same local network.

Please tell me a solution…….