Can't Connect to OSX http://localhost:port in Parallels

Discussion in 'General Questions' started by matbiscan, Mar 15, 2008.

  1. matbiscan

    matbiscan Bit poster

    Messages:
    2
    I'm having the hardest time trying to connect to my mac localhost on a specific port. I'm running a Django server on port 8001. In OSX I can get there just fine with localhost:8001 and I see my site running. The site is located in my Sites directory.

    In Parallels WindowsXP, I've set up an alias (named 'osx') to point to the IP address for the OSX localhost (I've also installed Bonjour). In my Windows XP I see the OSX Apache start page, so I know I can connect to the server. However, once I enter the port number, I get the "Server not found" message. The only port that seems to be working is 80, the default Apache port number.

    I need to be able to test my sites in IE6/7, which is the main reason I bought Parallels. I don't want to have to set up XP in parallels with Python, Django, MySQL and all the other programs I need to run the site locally there just to test in IE. I will also have more projects that I will need to work on using other ports in the future.

    I have searched the web and found no real answer to this. I have added Parallels to the OSX application firewall and I have opened up port 8001 in the Terminal using 'sudo ipfw.' Nothing seems to work. Has anyone come across a solution?

    I am using a Macbook Pro 2.4ghz Intel Core Duo 2 with OSX 10.5.2 (Build 9C2028) running Parallels 3 (Build 5584).
     
    Last edited: Mar 15, 2008
  2. jeffro01

    jeffro01 Member

    Messages:
    25
    Have you checked windows firewall?
     
  3. matbiscan

    matbiscan Bit poster

    Messages:
    2
    Actually, I figured it out. I just opened up the ip for Mac OS X with the port number to be viewed on a local network.
     
  4. dtoblak

    dtoblak Bit poster

    Messages:
    1
    Same Problem

    Hi, I'm having the same issue with my mb running parallels. I've tried running my server on several different ports. I can see the opening screen for apache as well as some other php apps. However, it won't find the ip:port of my rails mongrel server, no matter what I change the port to. Can you elaborate on how you opened the IP and port?

    This use to work before. Not sure what happened that made it stop working.

    Thanks,
    Dave
     
  5. Junap

    Junap Bit poster

    Messages:
    6
    I'm also having problems with this: Running Headdress to create sites with ports in the 900x range. I have Bonjour 1.0.4 installed on Windows.

    Weirdly, http://machinename.local:9000 works, but none of the other ports numbers do (eg 9007).
     
  6. John@Parallels

    John@Parallels Forum Maven

    Messages:
    6,333
    Disable firewall on Mac OS side
     
  7. Junap

    Junap Bit poster

    Messages:
    6
    Completely? What about the security implications?

    Anyway, I tried that temporarily and had no change in outcome - machinename.local:9000 still works, machinename.local:9007 still doesn't.
     
    Last edited: Jul 9, 2008
  8. John@Parallels

    John@Parallels Forum Maven

    Messages:
    6,333
    Try Mac IP address shown on Parallels Nat interface in System Preferences - Network - Parallels Nat
     
  9. Junap

    Junap Bit poster

    Messages:
    6
    Same result again, I'm afraid. port 9000 works, but others do not.
     
  10. John@Parallels

    John@Parallels Forum Maven

    Messages:
    6,333
    What is ipconfig in Windows and ifconfig -a in Mac?
     
  11. Junap

    Junap Bit poster

    Messages:
    6
    ifconfig -a:

    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
    inet 127.0.0.1 netmask 0xff000000
    inet6 ::1 prefixlen 128
    gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
    stf0: flags=0<> mtu 1280
    en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 00:17:f2:cb:56:40
    media: autoselect status: inactive
    supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP <full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX <full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control> none
    fw0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 2030
    lladdr 00:19:e3:ff:fe:2a:e4:82
    media: autoselect <full-duplex> status: inactive
    supported media: autoselect <full-duplex>
    en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    inet6 fe80::219:e3ff:fe04:5837%en1 prefixlen 64 scopeid 0x6
    inet 192.168.1.24 netmask 0xffffff00 broadcast 192.168.1.255
    ether 00:19:e3:04:58:37
    media: autoselect status: active
    supported media: autoselect
    en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
    inet6 fe80::21c:42ff:fe00:0%en2 prefixlen 64 scopeid 0x7
    inet 10.37.129.2 netmask 0xffffff00 broadcast 10.37.129.255
    ether 00:1c:42:00:00:00
    media: autoselect status: active
    supported media: autoselect
    en3: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
    inet6 fe80::21c:42ff:fe00:1%en3 prefixlen 64 scopeid 0x8
    inet 10.211.55.2 netmask 0xffffff00 broadcast 10.211.55.255
    ether 00:1c:42:00:00:01
    media: autoselect status: active
    supported media: autoselect




    ipconfig:

    Windows IP Configuration


    Ethernet adapter Local Area Connection:

    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : 10.211.55.4
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 10.211.55.1
     
  12. John@Parallels

    John@Parallels Forum Maven

    Messages:
    6,333
    try http://10.211.55.1:9000 with Mac firewall disabled, if you have any antivirus on mac make sure that it doesn't block ports
     
  13. sjd

    sjd Bit poster

    Messages:
    1
    Same problem, no luck

    Firewalls disabled on both Mac and Windows VM. No anti-virus installed. Can hit http://10.211.55.2 fine but as soon as I add port, it's over - nu luck.

    Any other information on this?
     
  14. kingflow

    kingflow Bit poster

    Messages:
    5
    solving problem for quickbooks

    I have had this problem with trying to connect my quickbooks inside parallels to my qb file on my mac.
    here is the fix which looks like it may be working.

    get ip address on your mac.
    system preferences =>network=> click advanced tab on airport network section. =>click tcp/ip section and write down ip address. mine was 192.168.1.52.

    go to your windows 7 in parallels. go to my computer>windows>system32>drivers>etc> you will find a hosts file.
    drag this to your desktop. open this in notepad. add the following to bottom part of page.

    your ip .psf
    your ip psf


    for example.
    192.168.1.52 .psf
    192.168.1.52 psf


    that is all.
     
  15. lilul

    lilul Bit poster

    Messages:
    2

Share This Page