A
A
Artem00712017-08-27 19:07:06
In contact with
Artem0071, 2017-08-27 19:07:06

VK on localhost?

I use vue-cli
How to make VK widgets work on LAN?
Tried and so
And did not understand how to do it in cli?
if I change the port to 80, then it doesn’t launch the npm dev command
PS
what does this command do and is it safe?)

sudo iptables -t nat -I OUTPUT -p tcp -d 127.0.0.1 --dport 80 -j REDIRECT --to-ports 8000

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Yarkov, 2017-08-28
@Artem0071

if I change the port to 80, then it does not start on the npm dev command

Port below 1024 EMNIP requires sudo

M
Maxim Pavlov, 2017-08-28
@Umirode

The command seems to redirect all outgoing requests from 80 to 8000, but this is not accurate.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question