summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/xmlGenerator/hostDomainGenerator.sh4
-rwxr-xr-xtools/xmlGenerator/portAllocator.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/xmlGenerator/hostDomainGenerator.sh b/tools/xmlGenerator/hostDomainGenerator.sh
index 5b27513..a6e5f37 100755
--- a/tools/xmlGenerator/hostDomainGenerator.sh
+++ b/tools/xmlGenerator/hostDomainGenerator.sh
@@ -64,8 +64,8 @@ hostConfig="hostConfig.py"
PFWScriptGenerator="PFWScriptGenerator.py"
portAllocator="portAllocator.py"
-TPHost=localhost
-PFWHost=localhost
+TPHost=127.0.0.1
+PFWHost=127.0.0.1
TPCreated=false
HostRoot="$ANDROID_HOST_OUT"
diff --git a/tools/xmlGenerator/portAllocator.py b/tools/xmlGenerator/portAllocator.py
index 79a1c6b..64e1175 100755
--- a/tools/xmlGenerator/portAllocator.py
+++ b/tools/xmlGenerator/portAllocator.py
@@ -32,8 +32,8 @@ import sys, socket
serversock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
- # Create a listening socket on a random available port
- serversock.bind(('localhost',0))
+ # Create a listening socket on a random available port on localhost
+ serversock.bind(('127.0.0.1',0))
serversock.listen(0)
# Print the chosen port
@@ -41,7 +41,7 @@ try:
serversock.close()
except socket.error, (errno,message):
- print("Socket creation error " + str(errno) + ": " + message)
+ sys.stderr.write("portAllocator: Socket creation error " + str(errno) + ": " + message + '\n')
if serversock:
serversock.close()
sys.exit(1)