{"action":"created","issue":{"url":"https://api.github.com/repos/square/okhttp/issues/2120","labels_url":"https://api.github.com/repos/square/okhttp/issues/2120/labels{/name}","comments_url":"https://api.github.com/repos/square/okhttp/issues/2120/comments","events_url":"https://api.github.com/repos/square/okhttp/issues/2120/events","html_url":"https://github.com/square/okhttp/issues/2120","id":122470848,"number":2120,"title":"how can change the ip of the mockWebServer?","user":{"login":"guttentag","id":8376141,"avatar_url":"https://avatars.githubusercontent.com/u/8376141?v=3","gravatar_id":"","url":"https://api.github.com/users/guttentag","html_url":"https://github.com/guttentag","followers_url":"https://api.github.com/users/guttentag/followers","following_url":"https://api.github.com/users/guttentag/following{/other_user}","gists_url":"https://api.github.com/users/guttentag/gists{/gist_id}","starred_url":"https://api.github.com/users/guttentag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guttentag/subscriptions","organizations_url":"https://api.github.com/users/guttentag/orgs","repos_url":"https://api.github.com/users/guttentag/repos","events_url":"https://api.github.com/users/guttentag/events{/privacy}","received_events_url":"https://api.github.com/users/guttentag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-16T10:18:07Z","updated_at":"2015-12-17T00:44:03Z","closed_at":null,"body":"i'm testing an app that use external SDK which have okhttpclient.\r\ni set mockWebServer and than set proxy to httpClient of the SDK using ```okHttpClient.setProxy(mockWebServer.toProxyAddress())```\r\nand i set a dispatcher to simulate the server.\r\nthe ip of the mockWebServer is set to localhost (127.0.01), and this is working fine when testing on real device, but when i use emulator (genymotion),  i need to mockWebServer to have a specific ip adress.\r\ni tried, but couldn't find a way to change the IP address, can someone please give me code example?\r\nthanks"},"comment":{"url":"https://api.github.com/repos/square/okhttp/issues/comments/165302027","html_url":"https://github.com/square/okhttp/issues/2120#issuecomment-165302027","issue_url":"https://api.github.com/repos/square/okhttp/issues/2120","id":165302027,"user":{"login":"swankjesse","id":133019,"avatar_url":"https://avatars.githubusercontent.com/u/133019?v=3","gravatar_id":"","url":"https://api.github.com/users/swankjesse","html_url":"https://github.com/swankjesse","followers_url":"https://api.github.com/users/swankjesse/followers","following_url":"https://api.github.com/users/swankjesse/following{/other_user}","gists_url":"https://api.github.com/users/swankjesse/gists{/gist_id}","starred_url":"https://api.github.com/users/swankjesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swankjesse/subscriptions","organizations_url":"https://api.github.com/users/swankjesse/orgs","repos_url":"https://api.github.com/users/swankjesse/repos","events_url":"https://api.github.com/users/swankjesse/events{/privacy}","received_events_url":"https://api.github.com/users/swankjesse/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T00:44:03Z","updated_at":"2015-12-17T00:44:03Z","body":"Call `start(InetAddress inetAddress, int port)` with the local IP address you'd like to listen on."}}