Access local machine internet from Hyper-V Machine

Dear All,
I have configured a VM as a domain controller and want to access my host machine internet. below is an image of the VM Settings
Mohd Sufian www.sqlship.wordpress.com Please mark the post as Answered if it helped.

Hello Mohammad,
As I can see from your screenshot above that you have 2 vNICs attached to this Virtual Machine.
The logical Name is set to Internal Switch. Could you please confirm what type of Virtual Switch did you choose when you create the vSwitch?
External, Internal or Private?
If the Virtual Switch is Created as Internal, then it's impossible to access the Internet, the network traffic won't leave the Hyper-V Host. Please make sure that you have at least one Virtual Switch created as
External and attached to this VM.  
Now based on your existing Network Infrastructure (VLAN, Firewall, etc...) you must adjust if needed.
Hope this help.
Regards,
Charbel Nemnom
MCSA, MCSE, MCS, MCITP
Blog: www.charbelnemnom.com
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark
as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Similar Messages

  • Unable to access local machine after a VPN connection

    I have been previously able to control other machine are our network after making a successful VPN connection, until we have to rebuild the server. I have configure everything as before (as I believe), but I am still unable to connect to other local machines. I am able to connect to our xserve and shared drives (via AFP). ARD ports are open as neccessary. thank you

    Hi n.dave, and a warm welcome to the forums!
    So, I take it all the numbers are faked?
    Is the 5th number on the failed on in your Network?

  • Can't access locally hosted website from behind the router, but can outside

    Hi, I recently had to be moved from ATT DSL to U-verse. At home I host a small non-commercial website with a domain name registered, listening on port 80.  I can access the website if signed in to my employer's VPN at home, but not from any machine in my home network.  This worked for a few days after switching, but then suddenly stopped working. Any idea what's going on and if it can be fixed? Since I can get to it from VPN, I assume folks outside of U-verse can see it.  How about folks with U-verse as their ISP?  The web site is http://www.jtlanguage.com. Thanks. -John 

    I suspect that the U-Verse RG is smart enough to see that the IP address you are attempting to route to is itself, and it is not applying the port forwarding to traffic coming from internal addresses as it is from external traffic arriving (since the traffic is coming from behind the firewall, not outside it).  If this is the case, you could put a hosts file entry on your local machines to identify the internal IP address rather than the external IP address for the web server, so that the computers go directly to the machine behind the firewall.

  • Accessing Local Interface EJB from Web Container Oracle App Server 9.0.4

    Hi,
    I am developing a struts based small application, which calls a EJB which uses Local Interface from Struts ActionClass.
    I am getting NameNotFoundException. The exact exception is s mentioned below.
    05/03/29 16:15:49 javax.naming.NameNotFoundException: LoginRSL not found
    The deployment descriptors are as mentioned below.
    =============
    ejb-jar.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <enterprise-beans>
    <session>
    <description>Session Bean ( Stateless )</description>
    <display-name>LoginRSL</display-name>
    <ejb-name>LoginRSL</ejb-name>
    <local-home>loginApp.model.LoginRHome</local-home>
    <local>loginApp.model.LoginL</local>
    <ejb-class>loginApp.model.LoginRSL</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <relationships/>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>LoginRSL</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    orion-ejb-jar.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
    <orion-ejb-jar>
    <enterprise-beans>
    <session-deployment name="LoginRSL"/>
    </enterprise-beans>
    </orion-ejb-jar>
    I also tried adding following code to web.xml
    web.xml
    <ejb-local-ref>
    <ejb-ref-name>LoginRSL</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local-home>LoginRHome</local-home>
    <local>LoginL</local>
    <ejb-link>LoginRSL</ejb-link>
    </ejb-local-ref>
    It is quite evident that it is not able to lookup the JNDI name.
    Can someone throw light on this? If someone has working sample of this, can you mail it to [email protected]?

    Nipun,
    WebLogic and OC4J are not the same thing. That's like saying Oracle and SQL Server are the same thing -- or C++ and Java are the same thing.
    I recall a posting to a forum (don't remember if it was this one), where the poster was complaining that some feature of the application server he had previously used, was not supported by OC4J. Turned out that the feature he was referring to, contradicted the J2EE specification -- which is why it wasn't available in OC4J. In other words, he didn't like the fact that OC4J was more compliant with the J2EE specification than his "other" application server. Go figure!
    So, if you haven't already done so, I suggest you verify that this feature of WebLogic is something that complies with the J2EE specifications -- before expecting OC4J to support the same feature.
    And if it's not clear, from the specifications, then every vendor is free to implement this feature (or not).
    So if it turns out that WebLogic is a more appropriate application server for you -- then why not just stick with it (and forget the others)?
    Good Luck,
    Avi.

  • AE access over internet from PC

    is it possible to access a hard drive connected to an Airport Extreme over the internet??
    if so, how? I know i can access it over Internet from a Mac

    Do you have a WiFi Router for the Internet on your PC ? If so set up WLAN Access Point on your Nokia N8. Refer Pg. No. 100 /101 of the User_Guide ...

  • How do I Set up a LAN with no access to the Internet?

    I have a Solaris 10 (08/07) [No longer can acess the internet]
    full install on one system, and Solaris 10 Developer Edition (09/07) on another system. Each has been auto-configured upon installation, and have reached the Internet, and registered at Sun Microsystems, from behind a router and cable modem.
    I want to create a Local Area Network, using a 4 port Netgear Ethernet Hub, model EN104tp, Each of the Solaris 10 systems, a Windows XP Pro system, and a Windows Media Edition LapTop. +(Which I want to have additional admin control, and access to the Server, from!)+
    My problem is this!
    1) Do I have to change any files to eliminate, the access to the internet from the two Solaris machines via router and cable modem? If so which, and, how do I? +(I intend for the LAN to be isolated from the internet)+
    2) What are the step by step, to set up a LAN?
    I can't seem to find that info anywhere. Maybe I am looking in all the wrong places...
    I appreciate and Thank You in advance for any help...

    The only difference between LAN and Internet is the size.
    Depends on how you define LAN -- it may be multiple subnets glued with routers or just one big or small subnet with bridges, switches and/or hubs or simply a crossed UTP-cable..
    If you don't have routers then you won't need a /etc/defaultrouter (rm -f /etc/defaultrouter; /usr/sbin/route -fn)
    You should use RFC-1918 addresses; i.e. chunks with a suitable mask of your choice as parts or whole of 10./8 (10.0.0.0 - 10.255.255.255), 172.16/12 (172.16.0.0 - 172.31.255.255) and/or 192.168/16 (192.168.0.0 - 192.168.255.255). Example 10.0.0.0/255.255.255.0 for a (256-2=)254-node subnet; 10.20.30.40/255.255.255.252 would suite a crossed-cable subnet perfectly.
    A DHCP-server would be nice for PC's. Solaris can do that (/usr/sadm/admin/bin/dhcpmgr).

  • Access local only for my WRT54GX2 router

    My WRT54GX2 router worked fine but today, I can connect to my router with access: local only, instead of "access: local and internet".
    Why? How can I fix that?

    Bypass the router and connect the computer directly to the modem. make sure that you can access the Internet through the modem.
    Connect the modem to the Internet port and computer to port 1 on Linksys router.
    Press and hold the reset button on the router for 30 seconds. Release the reset button and wait for 30 seconds. Power cycle the router and reconfigure it.

  • Access windows server 2003 from a local user machine (windows 7 pro)?

    Is there a way to look up user accounts from a local machine running windows 7 pro without having to always go to the physical server itself?
    The reason is the location of the server, a bit of an inconvenience.
    It's a windows server 2003 btw.
    Thank you,
    Cris

    Hi,
    Thank you for posting in Windows Server Forum.
    Good to hear that you go it working.
    In respect to your another question, it seems that you want to have with smart card technique for password without entering manual credential. Please check following article for information.
    Smart Card and Remote Desktop Services
    http://technet.microsoft.com/en-us/library/ff404286(v=WS.10).aspx
    Guidelines for enabling smart card logon with third-party certification authorities
    http://support.microsoft.com/kb/281245
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support

  • Get Data from API which is hosted on local Machine

    I am using VS2013 to develop a databound app in win phone 8. I hosted a api on IIS Express on local machine with IP. When i browse the API on browser is comes easily,But a error is coming when trying to access from VS Solution.I am attaching my code and
    the error. the code is following
                         const string apiUrl = @"http://169.254.80.80/api/guest";
            public MainViewModel()
                this.Items = new ObservableCollection<ItemViewModel>();
            /// <summary>
            /// A collection for ItemViewModel objects.
            /// </summary>
            public ObservableCollection<ItemViewModel> Items { get; private set; }
            private string _sampleProperty = "Sample Runtime Property Value";
            /// <summary>
            /// Sample ViewModel property; this property is used in the view to display its value using a Binding
            /// </summary>
            /// <returns></returns>
            public string SampleProperty
                get
                    return _sampleProperty;
                set
                    if (value != _sampleProperty)
                        _sampleProperty = value;
                        NotifyPropertyChanged("SampleProperty");
            /// <summary>
            /// Sample property that returns a localized string
            /// </summary>
            public string LocalizedSampleProperty
                get
                    return AppResources.SampleProperty;
            public bool IsDataLoaded
                get;
                private set;
            /// <summary>
            /// Creates and adds a few ItemViewModel objects into the Items collection.
            /// </summary>
            public void LoadData()
                if (this.IsDataLoaded == false)
                    this.Items.Clear();
                    this.Items.Add(new ItemViewModel() { ID = "0", LineOne = "Please Wait...", LineTwo = "Please wait while the catalog is downloaded from the server.", LineThree = null });
                    WebClient webClient = new WebClient();
                    webClient.Headers["Accept"] = "application/json";
                    webClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(webClient_DownloadCatalogCompleted);
                    webClient.DownloadStringAsync(new Uri(apiUrl));
            private void webClient_DownloadCatalogCompleted(object sender, DownloadStringCompletedEventArgs e)
                try
                    this.Items.Clear();
                    if (e.Result != null)
                        var books = JsonConvert.DeserializeObject<GuestDetail[]>(e.Result);
                        int id = 0;
                        foreach (GuestDetail book in books)
                            this.Items.Add(new ItemViewModel()
                                ID = (id++).ToString(),
                                LineOne = book.GuestName,
                                LineTwo = book.Nationality,
                                LineThree = book.Profession.Replace("\n", " ")
                        this.IsDataLoaded = true;
                catch (Exception ex)
                    this.Items.Add(new ItemViewModel()
                        ID = "0",
                        LineOne = "An Error Occurred",
                        LineTwo = String.Format("The following exception occured: {0}", ex.Message),
                        LineThree = String.Format("Additional inner exception information: {0}", ex.InnerException.Message)
            public event PropertyChangedEventHandler PropertyChanged;
            private void NotifyPropertyChanged(String propertyName)
                PropertyChangedEventHandler handler = PropertyChanged;
                if (null != handler)
                    handler(this, new PropertyChangedEventArgs(propertyName));
    the error is ...
    {System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.
       at System.Net.Browser.ClientHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
       at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClasse.<EndGetResponse>b__d(Object sendState)
       at System.Net.Browser.AsyncHelper.<>c__DisplayClass1.<BeginOnUI>b__0(Object sendState)
       --- End of inner exception stack trace ---
       at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
       at System.Net.Browser.ClientHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
       at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
       at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)}
    Can anyone help me please, I am stuck with it.
     

    Did you set up your router to forward the request to your computer?  the ip you posted looks an ip your internet service provider gave you.
    Fyi you can get 10 free azure websites

  • JDBC/JSP/MySQL Code works from my local machine, but not on server

    Hi there!
    I've been struggling with this problem for a while.
    I have a database from which I need to read and display some data on a browser. (The database is set up for remote access).
    I'm using the following JSP/JDBC code to do that.
    Class.forName ("com.mysql.jdbc.Driver").newInstance();
    out.println("<BR> Connecting to DB...Pls. Wait <BR>");
    Connection con = DriverManager.getConnection("url","user","pwd");
    if(con.isClosed())
    out.println("<BR><BR><BR>" +"Could NOT connect to MySQL Database...");
    else out.println("<BR> CONNECTED !!! <BR>");
    Statement stmt = con.createStatement();
    results = stmt.executeQuery("SELECT * FROM TableName" );
    When I run this of my local machine, it works fine. But when I upload it to a server, it doesn't run through. I dont get either the connected or not connected message.
    I tried this piece of code that I found online to check the driver.
    /*Driver d = (Driver)Class.forName("com.mysql.jdbc.Driver").newInstance();
    out.println("<BR>Got a driver instance. ");
    if (d.acceptsURL(url)) out.println("<BR>The driver does accept my URL");
    else out.println("<BR>The driver doesn't like the URL I'm trying"); */
    I ran it off the server and it worked. I got the outputs --Got a driver instance and The driver does accept my URL
    I'm unable to figure out why this code can be run locally from my machine, but not from a different location. The database is NOT on my machine.
    Any inouts will be really appreciated.
    I'm using an Apache Tomcat container and the database is MySQL.

    Just wanted to mention
    The database is on another (3rd) machine.
    So I have
    1. My local machine
    2. Database hosted on a 2nd machine
    3. Place I'm moving my code to (its basically a hosting account provided by an external company)
    I can access the database from my local machine. However, when I move the code over to another machine, it doesn't work.

  • Cannot run the code from local machine - works after deployment!!!

    Hi,
    I am totally new to application server. My problem is that the application code after it is 'deployed' from JDeveloper to Oracle Application Server - it works fine. I can go to the web application from the url and do a 'Submit' of forms and it works fine. The problem comes when I try to connect to dev. environment from local machine and try to do a 'Submit' (done for debugging purposes), I get a 500 Internal Server Error. Is there a configuration file or property I file I have to change? I am clueless.
    Basically addRequest can be considered as the 'Submit'.
    Javax.faces.FacesException: #{newRequestItem.addRequest}: javax.faces.el.EvaluationException: java.lang.IllegalAccessError: tried to access class javax.xml.rpc.FactoryFinder from class javax.xml.rpc.ServiceFactory
    At com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
    My application is built on ADF and JSF and connects to BPEL workflow and DRM. So it is using WebServices.
    Thanks.

    Hi,
    Top further pinpoint the issue, I can make the SSRS report work with the stored procedure by running
    SP_recompile 'myStoredProcedure'
    So, SQL Server has somehow messed up the execution plan for the sproc. But to repeat, executing the Sproc in Management Studio works just fine, I just look the exact sproc and parameters with SQL Profiler when it is not working in SSRS report, then run that
    same sproc manually and it works.
    After extensive debugging, it seems to raise from one specific SELECT row:
    SELECT
    cte.TIMEYEAR + 1 AS TIMEYEAR,
    where cte.TIMEYEAR is varchar. After changing that to
    SELECT
    CAST(cte.TIMEYEAR + 1 AS VARCHAR) AS TIMEYEAR,
    it started to work.
    What will probably remain forever unclear is that WHY the original select always breaks every now and then, and always starts to work with a simple sp_recompile. I could reproduce the error easily by running
    exec sp_msforeachtable @command1="EXEC sp_recompile '?'";
    after which the sproc raised error: "Conversion failed when converting nvarchar value 'Q1/2000' to data type int".
    ..aaaand then just by running SP_recompile 'myStoredProcedure' it again started working fine. I could reproduce this break & fix pair coherently.
    Still it makes no sense from SSRS report perspective, when sproc was broken in Management Studio query, it was always broken from SSRS report end as well, but sometimes when sproc was working from SSMS, it wasn't working from SSRS.

  • Get local machine Internet IP address

    Hi all,
    I want to get the internet IP address (from ISP) of my computer. But my computer already has a internal IP address. How can I get the Internet IP instead of Internal IP?
    I tried :
    InetAddress mNet = InetAddress.getLocalHost();
    String t = mNet.getHostAddress();
    But the IP is Internal once.
    Here is the infomration when I run ipconfig :
    0 Ethernet adapter :
    IP Address. . . . . . . . . : xxx.xxx.xxx.xxx
    Subnet Mask . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . : xxx.xxx.xxx.xxx
    1 Ethernet adapter :
    IP Address. . . . . . . . . : 0.0.0.0
    Subnet Mask . . . . . . . . : 0.0.0.0
    Default Gateway . . . . . . :
    2 Ethernet adapter :
    IP Address. . . . . . . . . : xxx.xxx.xxx.xxx
    Subnet Mask . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . :
    Remark : 0 Ethernet adapter is Internet IP, 2 Ethernet adapter is Internal IP
    Thanks!

    Hi,
    This code should print all the IP addresses from the local machine:
    import java.net.*;
    public class TestIP {
         public static void main(String args[]) {
              try {
                   InetAddress[] addresses;
                   addresses = InetAddress.getAllByName(InetAddress.getLocalHost().getHostName());
                   for (int i=0; i<addresses.length; i++) {
                        System.out.println(addresses.getHostAddress());
              catch(UnknownHostException e) {
                   System.out.println (e.getMessage());
    Hope this helps,
    Kurt.

  • Ifs Connection problem from local machine to Ifs server using API

    I am trying to make an API call to connect to Ifs database server running on different machine(UNIX) from local machine. I copied all jar files and /Lib/Ifs/Settings directory to my local machine. All these files are in the classpath of weblogic 6.0 environment. A jsp on weblogic server call a bean which has a responsibibility of connecting to Ifs server to get LibrarySession.
    From Visual Cafe 4.5 everything works fine but when i start weblogic 6.0 outside the visual cafe environment i get the error
    below. I included all the jar files and /Lib/Ifs/Settings in start up script of weblogic server
    Do you know if i missing some thing????
    java.lang.UnsatisfiedLinkError: do_open
    at oracle.jdbc.oci8.OCIDBAccess.do_open(Native Method)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:309)
    at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:198)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:251)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at oracle.ifs.server.LibraryConnection.(LibraryConnection.java:235
    at oracle.ifs.server.ConnectionPool.createLibraryConnection(ConnectionPo
    ol.java:576)
    at oracle.ifs.server.ConnectionPool.(ConnectionPool.java:321)
    at oracle.ifs.server.S_LibraryService.(S_LibraryService.java:912)
    at oracle.ifs.server.S_LibraryService.startService(S_LibraryService.java
    :1129)
    at oracle.ifs.beans.LibraryService.connectLocal(LibraryService.java:408)
    at oracle.ifs.beans.LibraryService.connect(LibraryService.java:280)

    Have you installed the Oracle client software on the machine where you are running WebLogic and your custom iFS application (your bean)?
    It looks like the native JDBC libraries are not available to the JVM where WebLogic is executing your code. iFS uses JDBC to access the Oracle database, and it requires "thick" (OCI8) JDBC to do so. This means that you need Oracle client software to be installed (in an ORACLE_HOME directory) on a computer where you want to use the iFS API.
    If you do have the Oracle client software installed already, then perhaps the WebLogic environment isn't configured to have access to the native JDBC libraries. Normally, as long as $ORACLE_HOME/lib is in the LD_LIBRARY_PATH (on unix) or $ORACLE_HOME/bin is in the PATH (on windows), stuff should just work.
    See if you can find any information about including native libraries (for instance, to use JNI) in the WebLogic documentation. We don't certify with WebLogic, which is why I don't know the answer offhand.

  • Extremely slow file transfers to Hyper-V VM on local machine

    I am attempting to transfer a 1.3GB file from my local machine (Windows 8) to my local hyper-V instance (Windows 2012). The transfer begins at about 300kb/s and then swiftly drops to 12-20kb/s.
    The two machines are connected to the LAN via the same physical ethernet adapter. The vSwitch and my local connection are bridged, so the VM and my local machine have IP addresses on the same subnet.
    Could that be related to the issue? I not a network administrator by trade so I am unaware of the tricks to diagnose this issue.

    Most likely, you are seeing an issue with Virtual Machine Queues.
    If you are running a Broadcom network adapter, you will need to disable Virtual Machine Queues. We just setup a new server, running Server 2012 Standard with Hyper-V, running two Server 2012 Standard guests, and saw the exact same thing you are describing.
    This seems to be an issue affecting Broadcom adapters.
    Go into the Hyper-V host network properties, and look at the physical adapter, not the vEthernet. On the Advanced tab, scroll down to Virtual Machine Queues, and set it to disabled.
    Once we made this change, things were flying.

  • View pdf from local machine

    I have requirement of selecting a pdf from local system and previewing it before uploading.
    I am able to select the file and upload it but i am not able to preview it.
    I tried using navigateToURL(urlRequest,
    "_blank"); , but it is not able to show file from local path
    Can anyone please tell how can i show the file from local machine
    TIA

    Hi,
    is your code executed in Flash runtime (web/standalone application but played in Flash runtime) or in AIR runtime (or 3rd party projector)? That's important as only AIR hosted movie would have access to "file://" protocol when defining/using URLRequest (and then navigateToURL) that are outside of your application domain:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/URLRequest.html
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/package.html# navigateToURL()
    regards,
    Peter

Maybe you are looking for