java - Localhost address in the Virtual Machine -
i using virtual machine on server. local ip of vm 192.168.1.10
i trying achieve requires me edit /etc/hosts provided in link
http://www.thatisjava.com/java-tech/55200/
i having similar problems, console reads
rtp--- :dataaddress: /192.168.1.10 controladdress: /192.168.1.10 dataport: 42050 controlport: 42051 java.io.ioexception: local data addressdoes not belong of hosts local interfaces java.io.ioexception: local data addressdoes not belong of hosts local interfaces @ org.speechforge.cairo.rtp.rtpconsumer.init(rtpconsumer.java:181) @ org.speechforge.cairo.rtp.rtpconsumer.<init>(rtpconsumer.java:95) @ org.speechforge.cairo.rtp.server.rtpstreamreplicator.<init> (rtpstreamreplicator.java:69) and more.
the answer problem given
i solved one. problem jmf seems use inetaddress.getallbyname() returns (at least in case) single ip address no matter how many addresses have defined on interfaces. problem solved placing ip address wanted use session manager /etc/hosts. must first line in /etc/hosts otherwise other row matches used.
unfortunately, cant make out trying state. /etc/hosts read
127.0.0.1 localhost 127.0.1.1 sparkvm104 so supposed change 127.0.0.1 192.168.1.10
or supposed create alias 127.0.0.1/192.168.1.10
or shall paste 192.168.1.10 in top as
192.168.1.10 127.0.0.1 localhost 127.0.1.1 sparkvm104 any appreciated.
regards.
the format /etc/hosts is
ip_address canonical_hostname [aliases...] (see http://linux.die.net/man/5/hosts), list 192.168.1.10 first, /etc/hosts file have this:
192.168.1.10 somehostname someotherhostname 127.0.0.1 localhost
Comments
Post a Comment