I have this Synology DS212J Nas. I wanna have all my work from eclipse and netbeans on the nas.

And just use the network location as the workspace.

Its working fine, on my stationary windows pc. Since i dont move it. But since my router doesnt have any loopback, it doesnt work with my mac since i am moving it all the time.

When i am home i can only use the internal ip to connect to the nas, and when i am out i ofc have to use the external.

I am very knew to Mac, but is it possible to create somekind of script that connect to the server depending on the ip i am on? What should i be looking at?

link|improve this question
feedback

migrated from stackoverflow.com Feb 2 at 20:13

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 0 down vote accepted

I don't know what you mean by a loopback on your router but if your router supports reverse nat you should be able to achieve what you want by setting up the reserve nat and configuring your server connection to your public address so that you have only one connection and the router will do the rest for you.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.