Unable to connect to local IP address in OSX

I am trying to connect to a web server that runs on my Mac OSX 1.6. I can connect to it locally using http://127.0.0.1:8888/myapp , but when I try to connect to it using the local IP address of my computer ( http://192.168.1.15:8888/myapp IP shown below) from the same computer (or another on the network) with which I cannot connect. I can check the LAN IP.

I tried adding IP forwarding to my router for port 8888, but that did not help. I checked and the OSX firewall is disabled.

Can anyone guess what else blocks the connection?

Here is what I get when running ifconfig:

~ :ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    inet6 ::1 prefixlen 128 
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
    inet 127.0.0.1 netmask 0xff000000 
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:1f:5b:e8:16:4d 
    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
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    inet6 fe80::21e:c2ff:febf:4809%en1 prefixlen 64 scopeid 0x5 
    inet 192.168.1.15 netmask 0xffffff00 broadcast 192.168.1.255
    ether 00:1e:c2:bf:48:09 
    media: autoselect status: active
    supported media: autoselect
fw0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 4078
    lladdr 00:1f:5b:ff:fe:2b:b3:3c 
    media: autoselect <full-duplex> status: inactive
    supported media: autoselect <full-duplex>
en5: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500
    ether 00:1e:c2:8e:0f:45 
    media: autoselect status: inactive
    supported media: none autoselect 10baseT/UTP <half-duplex>
en2: flags=8922<BROADCAST,SMART,PROMISC,SIMPLEX,MULTICAST> mtu 1500
    ether 00:1c:42:00:00:00 
    media: autoselect status: inactive
    supported media: autoselect
en3: flags=8922<BROADCAST,SMART,PROMISC,SIMPLEX,MULTICAST> mtu 1500
    ether 00:1c:42:00:00:01 
    media: autoselect status: inactive
    supported media: autoselect
+3
4

-, , loopback . "" - loopback, ip- 127.x.x.x, ip. "Network Utility" → Netstat → , . (, 8888) , - ...

+2

, . , - Run/Debug, , , .

, , -address = 0.0.0.0 Run/Debug. :

  • .
  • Run As... → Run Configurations
  • , " " "".
  • : --address = 0.0.0.0

, , , . , , .

TR

+1

, ServerFault SuperUser.

, Mac OS, , , .

0

BTW - I think it was a user error. I think I probably ran GWT in host mode with the Firefox plugin. There was no web server running or listening on port 8888, so it did not appear!

0
source

Source: https://habr.com/ru/post/1736068/


All Articles