I installed ubuntu-server in Virt-Management.
I cannot get a response using the following command
ubuntu-server ip: 10.0.2.15
my host ip : 192.168.124.10
ping 10.0.2.15
PING 10.0.2.15 (10.0.2.15) 56(84) 字节的数据。
But ubuntu can get a response
Please see the picture below
Related
I set a Hugo web server, which listen on localhost:30000.
The ubuntu machine has the 192.168.2.137 address.
When i do:
curl http://localhost:30000/ -> OK
curl http://127.0.0.1:30000/ -> OK
but,
curl http://192.168.2.137:30000/ -> curl: (7) Failed to connect to 192.168.2.131 port 30000: Connection refused
What could be the reason for that?
My /etc/netplan/00-installer-config.yaml looks like:
network:
version: 2
renderer: NetworkManager
ethernets:
enp0s3:
dhcp4: false
addresses: [192.168.2.137/24]
gateway4: 192.168.2.1
nameservers:
addresses:
- 8.8.8.8
lo:
renderer: networkd
match:
name: lo
addresses:
- 192.168.2.137/24
I also add an entry to /etc/hosts:
192.168.2.137 localhost
You said that it’s listen on localhost so if you use other interface it won’t work which is normal . You should listen on all interfaces or listen to the interface enp0s3.
I use MacOS 10.14.6 and few days ago I faced with a problem on my computer with localhost.
Rubymine can't connect to database with an error "java.net.NoRouteToHostException: Can't assign requested address (Address not available).". Also when I run puma server on 0.0.0.0:3000, browser can't open page on this address, and when I run server on 127.0.0.1:3000, browser can't open page on this address too, but can open on localhost:3000. I ran ping and got this output:
PING 127.0.0.1 (127.0.0.1): 56 data bytes
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
Request timeout for icmp_seq 0
ping: sendto: Can't assign requested address
Request timeout for icmp_seq 1
ping: sendto: Can't assign requested address
Request timeout for icmp_seq 2
ping: sendto: Can't assign requested address
Request timeout for icmp_seq 3
^C
--- 127.0.0.1 ping statistics ---
5 packets transmitted, 0 packets received, 100.0% packet loss```
WARP was the cause of the problem. Issue started after disabling the app. Disabling and reboot or enabling the app resolved the issue.
I have a weird problem I can't solve due to my lack of knowledge.
I have a local server running Dnsmasq. On my computer (Windows 10) I have Acrylic DNS Proxy which directs all requests ending with .local to the local server. It works great, however one domain respons with an unknown IPv6 address.
> ping testdomain.local
Pinging TESTDOMAIN [IPv6 address] with 32 bytes of data:
Reply from IPv6 address: time<1ms
I can't figure out why testdomain.local is reversed to TESTDOMAIN. All my other local domains respons as expected:
> ping testdomain2.local
Pinging testdomain2.local [local server address] with 32 bytes of data:
Reply from local server address: bytes=32 time<1ms TTL=64
Just was walking around till I tried to ping a domain .
But I surprised that it was the domain of the localhost !
I went to see what the wrong was , and how this domain set itself .
However,I didn't find anything that related to it in the localhost OS !
I tried to ping it via online ping service , and the surprise is here , it pings the localhost of the service host !
The domain is :
securitytube.com
Is there any explanation ?
This should be migrated to superuser but the answer to your question is because the owners of that domain have an IP address of 0.0.0.0 set...
$host securitytube.com
securitytube.com has address 0.0.0.0
securitytube.com mail is handled by 0 mail.happyisp.com.
$ping securitytube.com
PING securitytube.com (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.089 ms
Most linux boxes will presume that's the loop-back address (Hence return 127.0.0.1) Windows boxes appear to not do anything other than error out.
c:\ping 0.0.0.0
Pinging 0.0.0.0 with 32 bytes of data:
PING: transmit failed. General failure.
I tried to use pptp in Ubuntu 10.10 and encountered the following error (ip address, username, and password have been omitted)
sudo pptpsetup --create vpn --server
XXX --username XXX --password XXX
--start Using interface ppp0 Connect: ppp0 <--> /dev/pts/1 CHAP
authentication succeeded Cannot
determine ethernet address for proxy
ARP local IP address XXX remote IP
address XXX
Could anyone figure out why?
Are you sure that is an error?
From the known working log:
...
rcvd [IPCP ConfAck id=0x3 <addr 168.192.232.42>]
Cannot determine ethernet address for proxy ARP
local IP address 168.192.232.42
remote IP address 168.192.232.31
...