AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Get localhost ip mac3/9/2024 I open up the nfig file located in my computer's user folder. I enable IIS Express and tell the project url to be: - I do NOT override the application root URL I make sure that I have "Use Local Web Server" instead of "Visual Studio Development Server" I make sure that my start actions are pointing to the "Current Page". Select the project in the Project Viewer, right click and select properties. Enable IIS Express (after installing it) in the Project View by selecting my project solution on the right, right clicking it, then clicking "Enable IIS Express".ģ. I then start by setting up my Visual Studio project.Ģ. Great, that's the right setup and my host is communicating with guest! I run Wireshark on my guest setup and from my host, I ping my guest's ip address I picked up a TCP packet sniffer (Wireshark) so I could verify that I was getting connections between my host and the guest. I had the best results with bridged-connection since I received a 192.168.1.102 IP address (meaning that I had an assigned, local network, IP address) and debugged a connection to it. So, I removed all of my network drives, reset all of my information and started from scratch. Since I'm a complete noob (or was, I learned a lot these past few days) I kept thinking that the issue was with my host-guest setup, etc. I was one of the many people that were screaming "You can only use localhost as your server". When it came to setting up the application. You are right, my setup was mostly correct, but I overcomplicated a LOT of things that were unnecessary, so I decided to write a bit about it. I read a TON of posts regarding how to do this and basically, I was looking at all of the wrong places. That's exactly what it was, having said that, it took a while longer to figure it out. If someone can help me out through this, I'd be extremely grateful! WORKS - Host machine pinging guest machine - Ping 192.168.1.102 gets a responseĭOESNT WORK - Host machine access guest server - Opening Chrome from Mac OSX and typing 192.168.1.102:49301/HomeĭOESNT WORK - Remote machine accessing guest server - Establishing a connection from an iOS app to my guest server by connecting to my Ip actual address 174.7.X.Y: 49301/Home WORKS - Guest machine to Guest server - Opening Chrome from Win 7 and just typing localhost:49301/Home I want to be able to establish the following tests to my server: What am I missing here? I'm not familiar with ssh connections, IIS, bridge connections or anything like that, I'm a bit more of a designer/developer and never had the "pleasure" of going deep in establishing all of these connections and ports. I'm guessing that this should also be allowing me to connect to the server from a remote connection (i.e. I have also opened up my router firewall and I'm directing my global IP address to that specific network IP and port.Įxample, in my router, I've redirected TCP/UDP connections via the 49301 port to 192.168.1.102. However, this doesn't work, even if I can ping that IP address and receive an answer. What I mean by this is that I would expect that I should be able to go into google chrome on my Mac OSX and type:Īnd have everything connect properly. How do I go about connecting to my guest server (C# server) from my host box (mac osx)? Having said that, my guess is that since the guest server is running on the localhost, it's not the same as connecting it through the Windows 7 IP address. On my host machine (my mac osx), I can ping the Windows 7 virtual box connection by pinging 192.168.1.102 and I receive packets from it without a hitch. I can access the server by going to 127.0.0.1:49301/Home as well as localhost: 49301 (as expected). On my guest machine, when my C# server is running. Now I've gone into Windows Firewall and also opened up port 49301 on my guest, windows 7 setup. The :139 port are the default printer and usb ports, but nonetheless I have my actual IP in place and I can see that my C# server is there as well. After compiling my C# app and running the server, I run netstat -a -n so I can check to see what's listening: Now, when I run my guest machine, it all loads properly. I've setup the guest machine with a bridged connection via airport and I manage to get an ip connection address 192.168.1.102 I can connect to the internet and whatnot so setting up a NAT connection (to me, based on my limited knowledge) seems redundant. I'm trying to run a C# server app with a SQl database on my guest machine and connect it from my Host and from other devices like an iPhone.
0 Comments
Read More
Leave a Reply. |