javascript - Websocket connection not working on mobile browser -


i trying node js application websocket connection.

websocket = new websocket("ws://127.0.0.1:8888"); 

this working fine desktop browsers. not work mobile browsers.

please let me know doing wrong.

solved it.

i needed use public ip of pc instead of 127.0.0.1


Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -