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.
Access from the internet
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Access from the internet
VMWare?ShoopDaS wrote:the network is set up in bridged mode on the VMware network adapter.
Re: Access from the internet
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
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
- Attachments
-
- 1.png (23.22 KiB) Viewed 1684 times
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Access from the internet
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
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
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
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Access from the internet
Not with private addresses like you are showing unless you use something like teamviewer.
Re: Access from the internet
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.
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.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Access from the internet
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.