Page 1 of 1

Access from the internet

Posted: 25. Jul 2016, 12:09
by ShoopDaS
hello all,

apologies if there is already a topic or solution posted somewhere, but I was unable to find it.

I have a Centos7 webserver up and running on my virtual machine and everything is working as it should from the local addresses - the server is available from the 192.168.0.11 (host machine). Its local IP is 192.168.0.18 (static).
The server is connected to the internet and functions properly. I can download stuff without any problems, the network is set up in bridged mode on the VMware network adapter.

Now, my question is, how to make my server accessible to the internet?
Like that, I can ssh@ip and open the console? Or just to enter the IP in the browser and get some default apache site?

any changes on the server that are needed can be made, the server is for educational purposes only and I break it few times a week.
my version of oracles vmbox is 5.0.26r 108824
any questions that I may answer please feel free to ask.

Re: Access from the internet

Posted: 25. Jul 2016, 12:33
by mpack
ShoopDaS wrote:the network is set up in bridged mode on the VMware network adapter.
VMWare?

Re: Access from the internet

Posted: 25. Jul 2016, 12:46
by ShoopDaS
brainfart, what I meant is oracles vm box.

I'm using vmware for some other projects and just didn't pay attention to what i typed.

since I cant post link I've uploaded the screenshot in the forums post

Re: Access from the internet

Posted: 25. Jul 2016, 12:50
by mpack
If the VM is successfully bridged to the LAN (e.g. you can access the Internet from it) then it already has the same capabilities as any other PC on the LAN. It should be already as accessible as any physical PC on the same network.

Re: Access from the internet

Posted: 25. Jul 2016, 13:13
by ShoopDaS
hmm I think I've compleated more than I should

the virtual machine I s accessible from the local network )anything on 192.168.0.XXX.

what I want to do is go to my friends' place, open Cygwin, type in ssh user@my_ublic_ip -p#### and be asked for a password.
currently, it just times out the connection and nothing happens.

not sure if this is possible in any way so I'm wondering if anyone tried to do a similar thing

Re: Access from the internet

Posted: 25. Jul 2016, 13:54
by Perryg
Not with private addresses like you are showing unless you use something like teamviewer.

Re: Access from the internet

Posted: 25. Jul 2016, 15:21
by ShoopDaS
Yea I know.
local ip is only for local networks. 192.168.0.0/16 10.0.0.0/8 and 172 something something

what i want to is to ssh into it via the public IP address - for example. i connect to a different network or from work.
do
ssh root@103.104.105.106 -p#####

currently it just times out and gives up after some time.

That is what im trying to get around.

Re: Access from the internet

Posted: 25. Jul 2016, 15:34
by Perryg
Then you would need to forward the appropriate port in your router. This is basic networking and not a VirtualBox issue I am afraid. Also not that depending on the policy of your provider certain ports can be and in fact are blocked. You would need to check with them about that to be sure.