|
-
Sep 13th, 2024, 04:52 AM
#1
New Member
Re: Access a local port in my Ubuntu VM from the Windows Host
 Originally Posted by MarkCros
Try using a NAT network connection.
Good suggestion! Also, to set up a NAT network in VirtualBox, make sure that “NAT” mode is selected in the network settings for your Ubuntu VM, and the port is forwarded correctly via the “Port Forwarding” settings. This is important if you want to provide access to an application from a Windows host. For example, for a web server on port 8080, you can configure port forwarding in VirtualBox like this:
Code:
Protocol: TCP
Host IP: 127.0.0.1
Host Port: 8080
Guest IP: 192.168.0.100
Guest Port: 8080
This way, you can access the web server at 127.0.0.1:8080 from the host.
And don't forget that the firewall on the Ubuntu VM can block access. Check the settings of UFW (if used) or another network firewall to see if it allows connections on the correct port
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|